draw_set_color() (Game Maker)
draw_set_color()
(Game Maker 6.1, 7)
draw_set_color - set the current drawing color
Description
draw_set_color ( color )
- color - color to set the drawing color
draw_set_color() sets the current drawing color. By default, the drawing color is black (c_black). The drawing color is the color used to draw shapes and text.
Examples
Example of Use
draw_set_color(c_white);
draw_text(0,0,"This text is white");
draw_set_color(c_red);
draw_text(0,20,"This text is red");
Useful Info
- Its a good idea to set the drawing color with draw_set_color() before drawing anything. There will be times when you use multiple colors, and, to make sure whatever you are drawing is drawn in the right color, always include draw_set_color().
Related Pages
page revision: 12, last edited: 30 Jun 2012 15:31