Skip to main content
Color[]
required
An array of colors for the gradient. Colors transition from the center outward.
UnitPoint
The center point of the gradient. See UnitPoint. Defaults to "center".
number
The starting radius in points. The first color fills from the center to this radius.
number
The ending radius in points. The last color fills from this radius outward.

Support

Usage

As a standalone view

Multi-color gradient

Off-center gradient

Custom radius

As a fill

As a background (spotlight effect)

See Also