AngeliA
Search Results for

    Show / Hide Table of Contents

    Struct ColorF

    Color with float as data

    Constructors

    ColorF(float, float, float, float)

    Declaration
    public ColorF(float r, float g, float b, float a = 1)

    Fields

    a

    Alpha channel (0 means no value, 1 means full value)

    Declaration
    public float a

    b

    Blue channel (0 means no value, 1 means full value)

    Declaration
    public float b

    g

    Green channel (0 means no value, 1 means full value)

    Declaration
    public float g

    r

    Red channel (0 means no value, 1 means full value)

    Declaration
    public float r

    Methods

    CompareTo(object)

    Declaration
    public readonly int CompareTo(object obj)

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override readonly bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if obj and this instance are the same type and represent the same value; otherwise, false.

    Overrides
    ValueType.Equals(object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override readonly int GetHashCode()
    Returns
    Type Description
    int

    A 32-bit signed integer that is the hash code for this instance.

    Overrides
    ValueType.GetHashCode()

    Lerp(ColorF, ColorF, float)

    Find a color transform between two given colors smoothly

    Declaration
    public static ColorF Lerp(ColorF a, ColorF b, float t)
    float t

    Representation of the position. 0 means value A, 1 means value B.

    ToString()

    Returns the fully qualified type name of this instance.

    Declaration
    public override readonly string ToString()
    Returns
    Type Description
    string

    The fully qualified type name.

    Overrides
    ValueType.ToString()

    ToString(string)

    Declaration
    public readonly string ToString(string format)

    ToString(string, IFormatProvider)

    Declaration
    public readonly string ToString(string format, IFormatProvider formatProvider)

    Operators

    operator ==(ColorF, ColorF)

    Declaration
    public static bool operator ==(ColorF a, ColorF b)

    operator !=(ColorF, ColorF)

    Declaration
    public static bool operator !=(ColorF a, ColorF b)

    operator *(ColorF, ColorF)

    Declaration
    public static ColorF operator *(ColorF a, ColorF b)
    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค