GradientType
Overview
GradientType is an Enum that specifies the shape of a gradient.
This is used in the Type property of UIGradient, and determines the shape in which the gradient spreads.
Items
Name
Value
Description
Linear
0
The color changes in one direction. The direction is specified with the Rotation of UIGradient.
Radial
1
The color changes as it spreads outward from the center. Because the shape is symmetrical, the Rotation value does not affect the result.
Conical
2
The color changes as it sweeps clockwise around the center. The Rotation of UIGradient becomes the start angle.
Last updated