draw_set_colour_write_enable(red, green, blue, alpha);
Argument | Description |
---|---|
red | The colour to set for drawing. |
green | The colour to set for drawing. |
blue | The colour to set for drawing. |
alpha | The colour to set for drawing. |
Returns: N/A
With this function you can switch on or off the colour channels and the alpha channel for all further drawing. You can use this function to create alpha-channel only surfaces (switch off the RGB writing before
using the surface), or to create special effects while drawing to the screen. The default value for each of the components is true.
draw_set_colour_write_enable(false, false, true, true);
draw_self();
draw_set_colour_write_enable(true, true, true, true);
The above code will draw only the blue and alpha channel of the current sprite for the instance.