Table of Contents

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

ratio float

Where should it be? 0 is at the start, 1 at the end of the Gradient.

color Color

What color should be used at that point?

Properties

Color

Gets the color to be used.

public Color Color { get; }

Property Value

Color

Ratio

Gets the point along the defined gradient axis.

public float Ratio { get; }

Property Value

float