Artemis Artemis
Artemis Artemis

Search Results for

    Struct ColorSwatch

    Swatch containing the known useful color variations.

    Implements
    IEquatable<ColorSwatch>
    Namespace: Artemis.Core.ColorScience
    Assembly: Artemis.Core.dll
    Syntax
    public readonly struct ColorSwatch : IEquatable<ColorSwatch>

    Properties

    DarkMuted

    The DarkMuted component.

    Declaration
    public SKColor DarkMuted { get; init; }
    Property Value
    Type Description
    SKColor

    DarkVibrant

    The DarkVibrant component.

    Declaration
    public SKColor DarkVibrant { get; init; }
    Property Value
    Type Description
    SKColor

    LightMuted

    The LightMuted component.

    Declaration
    public SKColor LightMuted { get; init; }
    Property Value
    Type Description
    SKColor

    LightVibrant

    The LightVibrant component.

    Declaration
    public SKColor LightVibrant { get; init; }
    Property Value
    Type Description
    SKColor

    Muted

    The Muted component.

    Declaration
    public SKColor Muted { get; init; }
    Property Value
    Type Description
    SKColor

    Vibrant

    The Vibrant component.

    Declaration
    public SKColor Vibrant { get; init; }
    Property Value
    Type Description
    SKColor

    Methods

    Equals(ColorSwatch)

    Declaration
    public bool Equals(ColorSwatch other)
    Parameters
    Type Name Description
    ColorSwatch 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
    ValueType.Equals(object)

    GetHashCode()

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

    ToString()

    Override the record ToString method, so we get a cleaner datamodel viewer

    Declaration
    public override string? ToString()
    Returns
    Type Description
    string
    Overrides
    ValueType.ToString()

    Operators

    operator ==(ColorSwatch, ColorSwatch)

    Declaration
    public static bool operator ==(ColorSwatch left, ColorSwatch right)
    Parameters
    Type Name Description
    ColorSwatch left
    ColorSwatch right
    Returns
    Type Description
    bool

    operator !=(ColorSwatch, ColorSwatch)

    Declaration
    public static bool operator !=(ColorSwatch left, ColorSwatch right)
    Parameters
    Type Name Description
    ColorSwatch left
    ColorSwatch right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.