Sets a gradient color shading for the texture. 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:SetGradient("orientation", startR, startG, startB, endR, endG, endB)
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)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)