Constructor DiscordColor
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
DiscordColor(int)
Creates a new color with specified value.
public DiscordColor(int color)
Parameters
color
intValue of the color.
DiscordColor(byte, byte, byte)
Creates a new color with specified values for red, green, and blue components.
public DiscordColor(byte r, byte g, byte b)
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.
public DiscordColor(float r, float g, float b)
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.
public DiscordColor(string color)
Parameters
color
stringString representation of the color. Must be 6 hexadecimal characters, optionally with # prefix.