(5.5.0) scribble_draw_set_blend - JujuAdams/ScribbleOldDocs GitHub Wiki

scribble_draw_set_blend(color, alpha)

Returns: N/A (0)

Argument Name Purpose
0 color Blend colour used when drawing text, applied multiplicatively
1 alpha Alpha used when drawing text, 0 being fully transparent and 1 being fully opaque

The blend colour/alpha is applied at the end of the drawing pipeline. This is a little different to the interaction between draw_set_color() and draw_text() functions. Scribble's blend colour is instead similar to draw_sprite_ext()'s behaviour: The blend colour/alpha is applied multiplicatively with the source colour, in this case the source colour is whatever colour has been set using formatting tags in the input text string.

This script sets Scribble's draw state. All text drawn with scribble_draw() will use these settings until they're overwritten, either by calling this script again or by calling scribble_draw_reset() or scribble_draw_set_state().

⚠️ **GitHub.com Fallback** ⚠️