Skip to main content
colors
Color[]
required
An array of colors for the gradient. Colors transition from the center outward.
center
UnitPoint
The center point of the gradient. See UnitPoint. Defaults to "center".
startRadius
number
The starting radius in points. The first color fills from the center to this radius.
endRadius
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