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.
endRadius
number
The ending radius in points.

Support

Usage

As a standalone view

Multi-color gradient

Off-center gradient

Custom radius

As a fill

Vignette effect

Notes

  • The elliptical shape stretches to fill its container. In a non-square frame the gradient appears as an ellipse rather than a circle.
  • Differs from RadialGradient in that it always fills elliptically rather than circularly.

See Also