draw_get_colour


Description

This function returns the current draw colour which is used for drawing forms, text, primitives and un-textured 3D models. This can be set with the draw_set_colour function.


Syntax:

draw_get_colour()


Returns:

Real


Example:

if draw_get_colour() != c_black
   {
   draw_set_colour(c_black);
   }

The above code first checks the current draw colour and then if it is not set to c_black it sets it to c_black.