Table of Contents

Struct GradientStop

Namespace
SixLabors.Fonts.Rendering
Assembly
SixLabors.Fonts.dll

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

offset float

The stop position in the range [0, 1].

color GlyphColor

The color at the stop.

Properties

Color

Gets the color at the stop (direct RGBA).

public GlyphColor Color { get; }

Property Value

GlyphColor

Offset

Gets the stop position in the range [0, 1].

public float Offset { get; }

Property Value

float