Table of Contents

Struct GradientColor

Namespace
Kook
Assembly
Kook.Net.Core.dll

Represents a gradient color.

public readonly struct GradientColor
Inherited Members

Constructors

GradientColor(Color, Color)

Initializes a new instance of GradientColor.

public GradientColor(Color left, Color right)

Parameters

left Color

The left color of the gradient.

right Color

The right color of the gradient.

Properties

Left

The left color of the gradient.

public Color Left { get; }

Property Value

Color

Right

The right color of the gradient.

public Color Right { get; }

Property Value

Color

Operators

implicit operator (Color Left, Color Right)(GradientColor)

Converts the GradientColor to a tuple of Color.

public static implicit operator (Color Left, Color Right)(GradientColor gradient)

Parameters

gradient GradientColor

The gradient color to convert.

Returns

(Color Left, Color Right)

The tuple of Color.

implicit operator GradientColor((Color Left, Color Right))

Converts the tuple of Color to a GradientColor.

public static implicit operator GradientColor((Color Left, Color Right) gradient)

Parameters

gradient (Color Left, Color Right)

The tuple of Color to convert.

Returns

GradientColor

The GradientColor.