Draw_set_color - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
NOTOC {{-}}
Notation
Description
Change the color that is used for drawing basic shapes and such. Unless you want all the lines you draw the same color (black by default), you'll probably want to use this.
Parameters
- col: The color to set future drawing operations to.
Return Values
none
Example Call
//Draws two rectangles. A blue one on the left, and a red one on the right. Don't rescale the window...
winwidth = window_get_width();
winheight = window_get_height();
draw_set_color(c_blue);
draw_rectangle(0,0,winwidth/2,winheight, false);
draw_set_color(c_red);
draw_rectangle(winwidth/2,0,winwidth,winheight, false);
See Also
-
Returns a color based on the arguments.
-
Returns a color based on the arguments.
-
Sets the drawing color using RGB value RGB. Its the same as doing draw_set_color(make_color_rgb(red, green, blue))
-
Same as draw_set_color_rgb, but this one also allows for alpha.