GradientType
Specifies the shape of a gradient applied by a UIGradient.
Items 3
| History | Name | Value | Description | |
|---|---|---|---|---|
| 726 | Linear | 0 | Colors transition along a straight line across the UI element. | |
| 726 | Radial | 1 | Colors radiate outward from a center point in concentric rings. | |
| 726 | Conical | 2 | Colors sweep angularly around a center point, producing a cone-like or pie-chart gradient. |
Description
Determines the geometric shape used when blending the colors and transparency of a UIGradient. Read from UIGradient.Type, which defaults to GradientType.Linear.
- GradientType.Linear — colors transition along a straight line across the UI element, controlled by UIGradient.Rotation and UIGradient.Offset.
- GradientType.Radial — colors radiate outward from a center point, with UIGradient.Offset shifting the center and UIGradient.Scale controlling the spread radius.
- GradientType.Conical — colors sweep angularly around a center point (like a pie chart), with UIGradient.Rotation setting the start angle and UIGradient.Offset shifting the pivot.