Struct ColorStop
- Namespace
- SixLabors.ImageSharp.Drawing.Processing
- Assembly
- SixLabors.ImageSharp.Drawing.dll
A struct that defines a single color stop.
public readonly struct ColorStop
- Inherited Members
Constructors
ColorStop(float, in Color)
Initializes a new instance of the ColorStop struct.
public ColorStop(float ratio, in Color color)
Parameters
ratiofloatWhere should it be? 0 is at the start, 1 at the end of the Gradient.
colorColorWhat color should be used at that point?
Properties
Color
Gets the color to be used.
public Color Color { get; }
Property Value
Ratio
Gets the point along the defined gradient axis.
public float Ratio { get; }