Struct GradientStop
Defines a color stop for gradient paints. Offsets must be clamped to the range [0, 1] by the interpreter. Colors are direct RGBA and must not reference palettes.
public readonly struct GradientStop
- Inherited Members
Constructors
GradientStop(float, GlyphColor)
Initializes a new instance of the GradientStop struct.
public GradientStop(float offset, GlyphColor color)
Parameters
offsetfloatThe stop position in the range [0, 1].
colorGlyphColorThe color at the stop.
Properties
Color
Gets the color at the stop (direct RGBA).
public GlyphColor Color { get; }
Property Value
Offset
Gets the stop position in the range [0, 1].
public float Offset { get; }