New function: "gradient"
A function which creates a gradient between 0.0 and 1.0 along the specified axis.
Parameters:
- "direction" - double-valued counter-clockwise direction of the gradient, from 0.0 to 360.0, towards right (positive X) is 0.0. Symbolic names (strings) available:
- "x", "+x" = 0.0, towards the right side
- "-x" = 180.0, towards the left side
- "y", "+y" = 90.0, towards the top side
- "-y" = 270.0, towards the bottom side
- "from" - double-valued distance from the origin where the gradient starts, from -1000000000.0 to 1000000000.0
- "to" - double-valued distance from the origin where the gradient ends, from -1000000000.0 to 1000000000.0
- "to" needs to be strictly larger than "from"
- "form" - string, the gradient form. Defaults to "single". Possible values:
- "single" - 0.0 at "from" distance and before, 1.0 at "to" distance and after, linear
- "triangular" - 0.0 at "from" and all even multiples of the total distance between "from" and "to", 1.0 at "to" and similarly at all even multiples; linear
- "sawtooth" - As "single", but repeats itself indefinitely in both directions