GradientPattern

Returns a string describing a gradient.

Syntax

GradientPattern(color1, color2[, direction])
color1 = first color in the gradient
color2 second color in the gradient
direction = direction of the gradient, expressed in degrees (0 by default)

Remarks

The result of this function is used by the Fill function.
Intermediate colors can be obtained using ColorLerp.

The gradient directions that are currently supported are 0°, 90°, 180° and 270°, understood as a trigonometric angle (0° goes from left to right).

Examples

Fill(GradientPattern('red', 'white'))
Fill(GradientPattern('blue', 'white', 90))

Classification

Layout