DgsCreateGradient
Jump to navigation
Jump to search
This function is for creating a gradient for DGS elements.
Syntax
element dgsCreateLabel ( float color1, float color2, [ float direction = 1 ] )
Required Arguments
- color1: Gradient color 1
- color2: Gradient color 2
Optional Arguments
- direction: The direction in which gradient will follow. (1- left to right, 2- right to left, 3- top to bottom, 4- bottom to top)
Returns
Returns a shader if successful, false otherwise.