Skip to main content
colors
Color[]
required
An array of colors for the gradient. Colors transition evenly around the sweep.
center
UnitPoint
The center point of the gradient. See UnitPoint. Defaults to "center".
startAngle
number
The start angle in degrees. Defaults to 0.
endAngle
number
The end angle in degrees. Defaults to 360.

Support

Usage

As a standalone view

Full rainbow sweep

Partial sweep

Off-center gradient

As a fill

As a foreground style

See Also