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
Properties
Left
The left color of the gradient.
public Color Left { get; }
Property Value
Right
The right color of the gradient.
public Color Right { get; }
Property Value
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
GradientColorThe gradient color to convert.
Returns
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)