draw_get_color()
From ENIGMA
Description
The draw color is the color used for drawing primitives. It is set using draw_set_color, and retrieved using this function.
Parameters
| Parameter | Description |
|---|---|
| none | this function has no parameters |
Return Values
returntype: Returns the draw color, whether it be the default or set by draw_set_color.
Example Call
// example usage of the function
draw_set_color(c_red);
draw_circle(100, 100, 16, false);
oldcolor = draw_get_color();
draw_set_color(c_blue);
draw_circle(128, 128, 16, false);
draw_set_color(oldcolor);
draw_circle(164, 164, 16, false);
draw_set_color(c_red);
draw_circle(100, 100, 16, false);
oldcolor = draw_get_color();
draw_set_color(c_blue);
draw_circle(128, 128, 16, false);
draw_set_color(oldcolor);
draw_circle(164, 164, 16, false);