API Referenceglobal
GradientStopclass
A color stop at a normalized position in a shape gradient.
object→GradientStop
Constructors1
Showing 1 constructors
public GradientStop(float offset, Color color)
Creates a stop with a normalized position and straight-alpha color.
| Parameter | Type | Description |
|---|---|---|
| offset | float | — |
| color | Color | — |
No results match this filter.
Properties2
Showing 2 properties
public Color Sandbox.Fill.GradientStop.Color { get; set; }
Straight-alpha color, interpolated in premultiplied sRGB.
public float Sandbox.Fill.GradientStop.Offset { get; set; }
Normalized position in [0, 1], validated when constructing a gradient.
Returns:
float—No results match this filter.