draw_get_colour

Gets the current draw colour.

Syntax:

draw_get_colour()


Returns: Real


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.


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.


Back: colour And Blending
Next: colour_get_blue
© Copyright YoYo Games Ltd. 2018 All Rights Reserved