draw_set_color() (Game Maker)


(Game Maker 6.1, 7)

draw_set_color - set the current drawing color


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.


Example of Use

draw_text(0,0,"This text is white");
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

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.