Class ColorGradientStop
A color with a position, usually contained in a Artemis.Core.ColorGradientStop.ColorGradient
public class ColorGradientStop : CorePropertyChanged
- Inheritance
-
objectCorePropertyChangedColorGradientStop
Constructors
ColorGradientStop(SKColor, float)
Creates a new instance of the ColorGradientStop class
public ColorGradientStop(SKColor color, float position)
Parameters
Properties
Color
Gets or sets the color of the stop
public SKColor Color { get; set; }
Property Value
Position
Gets or sets the position of the stop
public float Position { get; set; }
Property Value
Methods
Equals(ColorGradientStop)
Determines whether the specified object is equal to the current object.
protected bool Equals(ColorGradientStop other)
Parameters
otherColorGradientStop
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Interpolate(ColorGradientStop, float)
Interpolates a color gradient stop between the this stop and the provided targetValue.
public void Interpolate(ColorGradientStop targetValue, float progress)
Parameters
targetValueColorGradientStopThe second stop.
progressfloatA value between 0 and 1.