draw_get_alpha


Description

This function returns the current value of the draw alpha, which will range between 0 (fully transparent) and 1 (fully opaque). The draw alpha affects the transparency of all draw functions, and can be set with the draw_set_alpha function.


Syntax:

draw_get_alpha()


Returns:

Real


Example:

if draw_get_alpha() != 1
   {
   draw_set_alpha(1);
   }

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