Skip to main content
Color[]
An array of colors for the gradient. Colors transition evenly between them.
UnitPoint
The starting point of the gradient line. See UnitPoint. Defaults to "top".
UnitPoint
The ending point of the gradient line. See UnitPoint. Defaults to "bottom".

Support

Usage

As a standalone view

Top-to-bottom gradient

Diagonal gradient

Horizontal gradient

As a fill

As a foreground style

As a background

See Also