GradientStop

One color of a gradient, at a position along it.
public readonly record struct GradientStop(Color Color, double Offset)

Constructors

Initializes a new instance of the GradientStop struct.

public GradientStop(
  Color Color,
  double Offset)
ParameterSummary
Color ColorThe color at this step.
double OffsetThe relative position from 0.0 to 1.0 along the axis.

Properties

Color

The color at this step.

Type: Color

public Color Color { get; init; }

Offset

The relative position from 0.0 to 1.0 along the axis.

Type: double

public double Offset { get; init; }