draw_get_alpha

Gets the current draw alpha value.

Syntax:

draw_get_alpha()


Returns: Real


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.


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.


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