globalAlpha
A floating-point number controlling the degree of opacity for all drawing operations.
Declaration
attribute unrestricted float globalAlpha;Discussion
Set the globalAlpha to any value between 0 and 1, inclusive, to set the degree of opacity for all subsequent drawing operations, with 0 being completely transparent and 1 being completely opaque. Any pixels drawn subsequently have their alpha channel value multiplied by the globalAlpha value.