Struct GradientStop
Represents a single color stop in a gradient, defined by an offset and a color. Used for both linear and radial gradients.
public struct GradientStop
- Inherited Members
Constructors
GradientStop(NFloat, uint)
Initializes a new GradientStop with a specified offset and packed RGBA color.
public GradientStop(NFloat offset, uint color)
Parameters
offset
NFloatPosition of the color stop, usually from 0 to 1.
color
uintColor in packed 0xRRGGBBAA format.
GradientStop(NFloat, Color)
Initializes a new GradientStop with a specified offset and color.
public GradientStop(NFloat offset, Color color)
Parameters
offset
NFloatPosition of the color stop, usually from 0 to 1.
color
ColorColor at the given offset.
Fields
Color
The color at the specified offset.
public Color Color
Field Value
Offset
The position of the stop within the gradient, typically in the range [0, 1].
public NFloat Offset
Field Value
Operators
implicit operator GradientStop((NFloat Offset, uint Color))
Implicitly converts a tuple of NFloat and uint
(0xRRGGBBAA) to a GradientStop.
public static implicit operator GradientStop((NFloat Offset, uint Color) pair)
Parameters
Returns
implicit operator GradientStop((NFloat Offset, Color Color))
Implicitly converts a tuple of NFloat and Color to a GradientStop.
public static implicit operator GradientStop((NFloat Offset, Color Color) pair)