Sets a gradient color shading for the texture (including opacity in the gradient). Gradient color shading does not change the underlying color of the texture image, but acts as a filter: see LayeredRegion:SetVertexColor() for details.
Signature:
Texture:SetGradientAlpha("orientation", startR, startG, startB, startAlpha, endR, endG, endB, endAlpha)
Arguments:
orientation- Token identifying the direction of the gradient (string)HORIZONTAL- Start color on the left, end color on the rightVERTICAL- Start color at the bottom, end color at the top
startR- Red component of the start color (0.0 - 1.0) (number)startG- Green component of the start color (0.0 - 1.0) (number)startB- Blue component of the start color (0.0 - 1.0) (number)startAlpha- Alpha (opacity) for the start side of the gradient (0.0 = fully transparent, 1.0 = fully opaque) (number)endR- Red component of the end color (0.0 - 1.0) (number)endG- Green component of the end color (0.0 - 1.0) (number)endB- Blue component of the end color (0.0 - 1.0) (number)endAlpha- Alpha (opacity) for the end side of the gradient (0.0 = fully transparent, 1.0 = fully opaque) (number)