Constructor DiscordColor
- Namespace
- Dis
Cat .EntitiesSharp
- Assembly
- DisCatSharp.dll
DiscordColor(int)
Creates a new color with specified value.
Parameters
color
intValue of the color.
DiscordColor(byte, byte, byte)
Creates a new color with specified values for red, green, and blue components.
Parameters
r
byteValue of the red component.
g
byteValue of the green component.
b
byteValue of the blue component.
DiscordColor(float, float, float)
Creates a new color with specified values for red, green, and blue components.
Parameters
r
floatValue of the red component.
g
floatValue of the green component.
b
floatValue of the blue component.
DiscordColor(string)
Creates a new color from specified string representation.
Parameters
color
stringString representation of the color. Must be 6 hexadecimal characters, optionally with # prefix.