Draw_get_color - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}}

Notation

Description

The draw color is the color used for drawing primitives. It is set using draw_set_color, and retrieved using this function.

Parameters

none

Return Values

Returns the draw color, whether it be the default or set by draw_set_color.

Example Call

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);