Artemis Artemis
Artemis Artemis

Search Results for

    Class ColorGradientStop

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

    Inheritance
    object
    CorePropertyChanged
    ColorGradientStop
    Namespace: Artemis.Core
    Assembly: Artemis.Core.dll
    Syntax
    public class ColorGradientStop : CorePropertyChanged

    Constructors

    ColorGradientStop(SKColor, float)

    Creates a new instance of the ColorGradientStop class

    Declaration
    public ColorGradientStop(SKColor color, float position)
    Parameters
    Type Name Description
    SKColor color
    float position

    Properties

    Color

    Gets or sets the color of the stop

    Declaration
    public SKColor Color { get; set; }
    Property Value
    Type Description
    SKColor

    Position

    Gets or sets the position of the stop

    Declaration
    public float Position { get; set; }
    Property Value
    Type Description
    float

    Methods

    Equals(ColorGradientStop)

    Declaration
    protected bool Equals(ColorGradientStop other)
    Parameters
    Type Name Description
    ColorGradientStop other
    Returns
    Type Description
    bool

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    Interpolate(ColorGradientStop, float)

    Interpolates a color gradient stop between the this stop and the provided targetValue.

    Declaration
    public void Interpolate(ColorGradientStop targetValue, float progress)
    Parameters
    Type Name Description
    ColorGradientStop targetValue

    The second stop.

    float progress

    A value between 0 and 1.

    Content is available under the PolyForm Noncommercial License, by Artemis RGB.