Search Results for

    Show / Hide Table of Contents

    Struct KuracordColor

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Object.Equals(Object, Object)
    Object.GetType()
    Object.ReferenceEquals(Object, Object)
    Namespace: KSharpPlus.Entities.Color
    Assembly: KSharpPlus.dll
    Syntax
    public readonly struct KuracordColor

    Constructors

    | Improve this Doc View Source

    KuracordColor(Byte, Byte, Byte)

    Creates a new color with specified values for red, green, and blue components.

    Declaration
    public KuracordColor(byte r, byte g, byte b)
    Parameters
    Type Name Description
    Byte r

    Value of the red component.

    Byte g

    Value of the green component.

    Byte b

    Value of the blue component.

    | Improve this Doc View Source

    KuracordColor(Int32)

    Creates a new color with specified value.

    Declaration
    public KuracordColor(int color)
    Parameters
    Type Name Description
    Int32 color

    Value of the color.

    | Improve this Doc View Source

    KuracordColor(Single, Single, Single)

    Creates a new color with specified values for red, green, and blue components.

    Declaration
    public KuracordColor(float r, float g, float b)
    Parameters
    Type Name Description
    Single r

    Value of the red component.

    Single g

    Value of the green component.

    Single b

    Value of the blue component.

    | Improve this Doc View Source

    KuracordColor(String)

    Creates a new color from specified string representation.

    Declaration
    public KuracordColor(string color)
    Parameters
    Type Name Description
    String color

    String representation of the color. Must be 6 hexadecimal characters, optionally with # prefix.

    Properties

    | Improve this Doc View Source

    Aquamarine

    Aquamarine, or #00FFBF.

    Declaration
    public static readonly KuracordColor Aquamarine { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Azure

    Azure, or #007FFF.

    Declaration
    public static readonly KuracordColor Azure { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    B

    Gets the blue component of this color as an 8-bit integer.

    Declaration
    public readonly byte B { get; }
    Property Value
    Type Description
    Byte
    | Improve this Doc View Source

    Black

    A near-black color. Due to API limitations, the color is #010101, rather than #000000, as the latter is treated as no color.

    Declaration
    public static readonly KuracordColor Black { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Blue

    Blue, or #0000FF.

    Declaration
    public static readonly KuracordColor Blue { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Blurple

    Dicksord Blurple, or #7289DA.

    Declaration
    public static readonly KuracordColor Blurple { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Brown

    Brown, or #A52A2A.

    Declaration
    public static readonly KuracordColor Brown { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Chartreuse

    Chartreuse, or #7FFF00.

    Declaration
    public static readonly KuracordColor Chartreuse { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    CornflowerBlue

    Cornflower blue, or #6495ED.

    Declaration
    public static readonly KuracordColor CornflowerBlue { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Cyan

    Cyan, or #00FFFF.

    Declaration
    public static readonly KuracordColor Cyan { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    DarkBlue

    Dark blue, or #00007F.

    Declaration
    public static readonly KuracordColor DarkBlue { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    DarkButNotBlack

    Dicksord Dark, But Not Black, or #2C2F33.

    Declaration
    public static readonly KuracordColor DarkButNotBlack { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    DarkGray

    Dark gray, or #A9A9A9.

    Declaration
    public static readonly KuracordColor DarkGray { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    DarkGreen

    Dark green, or #007F00.

    Declaration
    public static readonly KuracordColor DarkGreen { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    DarkRed

    Dark red, or #7F0000.

    Declaration
    public static readonly KuracordColor DarkRed { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    G

    Gets the green component of this color as an 8-bit integer.

    Declaration
    public readonly byte G { get; }
    Property Value
    Type Description
    Byte
    | Improve this Doc View Source

    Gold

    Gold, or #FFD700.

    Declaration
    public static readonly KuracordColor Gold { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Goldenrod

    Goldenrod, or #DAA520.

    Declaration
    public static readonly KuracordColor Goldenrod { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Gray

    Gray, or #808080.

    Declaration
    public static readonly KuracordColor Gray { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Grayple

    Dicksord Grayple, or #99AAB5.

    Declaration
    public static readonly KuracordColor Grayple { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Green

    Green, or #00FF00.

    Declaration
    public static readonly KuracordColor Green { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    HotPink

    Hot pink, or #FF69B4

    Declaration
    public static readonly KuracordColor HotPink { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    IndianRed

    Indian red, or #CD5C5C.

    Declaration
    public static readonly KuracordColor IndianRed { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    LightGray

    Light gray, or #808080.

    Declaration
    public static readonly KuracordColor LightGray { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Lilac

    Lilac, or #C8A2C8.

    Declaration
    public static readonly KuracordColor Lilac { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Magenta

    Magenta, or #FF00FF.

    Declaration
    public static readonly KuracordColor Magenta { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    MidnightBlue

    Midnight blue, or #191970.

    Declaration
    public static readonly KuracordColor MidnightBlue { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    None

    Represents no color, or integer 0;

    Declaration
    public static readonly KuracordColor None { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    NotQuiteBlack

    Dicksord Not QuiteBlack, or #23272A.

    Declaration
    public static readonly KuracordColor NotQuiteBlack { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Orange

    Orange, or #FFA500.

    Declaration
    public static readonly KuracordColor Orange { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    PhthaloBlue

    Phthalo blue, or #000F89.

    Declaration
    public static readonly KuracordColor PhthaloBlue { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    PhthaloGreen

    Phthalo green, or #123524.

    Declaration
    public static readonly KuracordColor PhthaloGreen { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Purple

    Purple, or #800080.

    Declaration
    public static readonly KuracordColor Purple { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    R

    Gets the red component of this color as an 8-bit integer.

    Declaration
    public readonly byte R { get; }
    Property Value
    Type Description
    Byte
    | Improve this Doc View Source

    Red

    Red, or #FF0000.

    Declaration
    public static readonly KuracordColor Red { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Rose

    Rose, or #FF007F.

    Declaration
    public static readonly KuracordColor Rose { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    SapGreen

    Sap green, or #507D2A.

    Declaration
    public static readonly KuracordColor SapGreen { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Sienna

    Sienna, or #882D17.

    Declaration
    public static readonly KuracordColor Sienna { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    SpringGreen

    Spring green, or #00FF7F.

    Declaration
    public static readonly KuracordColor SpringGreen { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Teal

    Teal, or #008080.

    Declaration
    public static readonly KuracordColor Teal { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Turquoise

    Turquoise, or #30D5C8.

    Declaration
    public static readonly KuracordColor Turquoise { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Value

    Gets the integer representation of this color.

    Declaration
    public readonly int Value { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    VeryDarkGray

    Very dark gray, or #666666.

    Declaration
    public static readonly KuracordColor VeryDarkGray { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Violet

    Violet, or #EE82EE.

    Declaration
    public static readonly KuracordColor Violet { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Wheat

    Wheat, or #F5DEB3.

    Declaration
    public static readonly KuracordColor Wheat { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    White

    White, or #FFFFFF.

    Declaration
    public static readonly KuracordColor White { get; }
    Property Value
    Type Description
    KuracordColor
    | Improve this Doc View Source

    Yellow

    Yellow, or #FFFF00.

    Declaration
    public static readonly KuracordColor Yellow { get; }
    Property Value
    Type Description
    KuracordColor

    Methods

    | Improve this Doc View Source

    ToString()

    Gets a string representation of this color.

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

    String representation of this color.

    Overrides
    ValueType.ToString()

    Operators

    | Improve this Doc View Source

    Implicit(Int32 to KuracordColor)

    Declaration
    public static implicit operator KuracordColor(int value)
    Parameters
    Type Name Description
    Int32 value
    Returns
    Type Description
    KuracordColor
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2023 KSharpPlus Contributors