Struct KuracordColor
Inherited Members
Namespace: KSharpPlus.Entities.Color
Assembly: KSharpPlus.dll
Syntax
public readonly struct KuracordColor
Constructors
| Improve this Doc View SourceKuracordColor(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. |
KuracordColor(Int32)
Creates a new color with specified value.
Declaration
public KuracordColor(int color)
Parameters
Type | Name | Description |
---|---|---|
Int32 | color | Value of the color. |
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. |
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 SourceAquamarine
Aquamarine, or #00FFBF.
Declaration
public static readonly KuracordColor Aquamarine { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Azure
Azure, or #007FFF.
Declaration
public static readonly KuracordColor Azure { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
B
Gets the blue component of this color as an 8-bit integer.
Declaration
public readonly byte B { get; }
Property Value
Type | Description |
---|---|
Byte |
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 |
Blue
Blue, or #0000FF.
Declaration
public static readonly KuracordColor Blue { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Blurple
Dicksord Blurple, or #7289DA.
Declaration
public static readonly KuracordColor Blurple { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Brown
Brown, or #A52A2A.
Declaration
public static readonly KuracordColor Brown { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Chartreuse
Chartreuse, or #7FFF00.
Declaration
public static readonly KuracordColor Chartreuse { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
CornflowerBlue
Cornflower blue, or #6495ED.
Declaration
public static readonly KuracordColor CornflowerBlue { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Cyan
Cyan, or #00FFFF.
Declaration
public static readonly KuracordColor Cyan { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
DarkBlue
Dark blue, or #00007F.
Declaration
public static readonly KuracordColor DarkBlue { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
DarkButNotBlack
Dicksord Dark, But Not Black, or #2C2F33.
Declaration
public static readonly KuracordColor DarkButNotBlack { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
DarkGray
Dark gray, or #A9A9A9.
Declaration
public static readonly KuracordColor DarkGray { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
DarkGreen
Dark green, or #007F00.
Declaration
public static readonly KuracordColor DarkGreen { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
DarkRed
Dark red, or #7F0000.
Declaration
public static readonly KuracordColor DarkRed { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
G
Gets the green component of this color as an 8-bit integer.
Declaration
public readonly byte G { get; }
Property Value
Type | Description |
---|---|
Byte |
Gold
Gold, or #FFD700.
Declaration
public static readonly KuracordColor Gold { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Goldenrod
Goldenrod, or #DAA520.
Declaration
public static readonly KuracordColor Goldenrod { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Gray
Gray, or #808080.
Declaration
public static readonly KuracordColor Gray { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Grayple
Dicksord Grayple, or #99AAB5.
Declaration
public static readonly KuracordColor Grayple { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Green
Green, or #00FF00.
Declaration
public static readonly KuracordColor Green { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
HotPink
Hot pink, or #FF69B4
Declaration
public static readonly KuracordColor HotPink { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
IndianRed
Indian red, or #CD5C5C.
Declaration
public static readonly KuracordColor IndianRed { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
LightGray
Light gray, or #808080.
Declaration
public static readonly KuracordColor LightGray { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Lilac
Lilac, or #C8A2C8.
Declaration
public static readonly KuracordColor Lilac { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Magenta
Magenta, or #FF00FF.
Declaration
public static readonly KuracordColor Magenta { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
MidnightBlue
Midnight blue, or #191970.
Declaration
public static readonly KuracordColor MidnightBlue { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
None
Represents no color, or integer 0;
Declaration
public static readonly KuracordColor None { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
NotQuiteBlack
Dicksord Not QuiteBlack, or #23272A.
Declaration
public static readonly KuracordColor NotQuiteBlack { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Orange
Orange, or #FFA500.
Declaration
public static readonly KuracordColor Orange { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
PhthaloBlue
Phthalo blue, or #000F89.
Declaration
public static readonly KuracordColor PhthaloBlue { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
PhthaloGreen
Phthalo green, or #123524.
Declaration
public static readonly KuracordColor PhthaloGreen { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Purple
Purple, or #800080.
Declaration
public static readonly KuracordColor Purple { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
R
Gets the red component of this color as an 8-bit integer.
Declaration
public readonly byte R { get; }
Property Value
Type | Description |
---|---|
Byte |
Red
Red, or #FF0000.
Declaration
public static readonly KuracordColor Red { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Rose
Rose, or #FF007F.
Declaration
public static readonly KuracordColor Rose { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
SapGreen
Sap green, or #507D2A.
Declaration
public static readonly KuracordColor SapGreen { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Sienna
Sienna, or #882D17.
Declaration
public static readonly KuracordColor Sienna { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
SpringGreen
Spring green, or #00FF7F.
Declaration
public static readonly KuracordColor SpringGreen { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Teal
Teal, or #008080.
Declaration
public static readonly KuracordColor Teal { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Turquoise
Turquoise, or #30D5C8.
Declaration
public static readonly KuracordColor Turquoise { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Value
Gets the integer representation of this color.
Declaration
public readonly int Value { get; }
Property Value
Type | Description |
---|---|
Int32 |
VeryDarkGray
Very dark gray, or #666666.
Declaration
public static readonly KuracordColor VeryDarkGray { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Violet
Violet, or #EE82EE.
Declaration
public static readonly KuracordColor Violet { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Wheat
Wheat, or #F5DEB3.
Declaration
public static readonly KuracordColor Wheat { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
White
White, or #FFFFFF.
Declaration
public static readonly KuracordColor White { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Yellow
Yellow, or #FFFF00.
Declaration
public static readonly KuracordColor Yellow { get; }
Property Value
Type | Description |
---|---|
KuracordColor |
Methods
| Improve this Doc View SourceToString()
Gets a string representation of this color.
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String | String representation of this color. |
Overrides
Operators
| Improve this Doc View SourceImplicit(Int32 to KuracordColor)
Declaration
public static implicit operator KuracordColor(int value)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value |
Returns
Type | Description |
---|---|
KuracordColor |