Table of Contents

Class ColorGradientStop

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

A color with a position, usually contained in a Artemis.Core.ColorGradientStop.ColorGradient

public class ColorGradientStop : CorePropertyChanged
Inheritance
object
CorePropertyChanged
ColorGradientStop

Constructors

ColorGradientStop(SKColor, float)

Creates a new instance of the ColorGradientStop class

public ColorGradientStop(SKColor color, float position)

Parameters

color SKColor
position float

Properties

Color

Gets or sets the color of the stop

public SKColor Color { get; set; }

Property Value

SKColor

Position

Gets or sets the position of the stop

public float Position { get; set; }

Property Value

float

Methods

Equals(ColorGradientStop)

Determines whether the specified object is equal to the current object.

protected bool Equals(ColorGradientStop other)

Parameters

other ColorGradientStop

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

targetValue ColorGradientStop

The second stop.

progress float

A value between 0 and 1.