draw_get_colour


描述

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.


语法:

draw_get_colour()


返回:

Real(实数)


例如:

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.