Constructor DiscordColor
- Namespace
 - DSharpPlus.Entities
 
- Assembly
 - DSharpPlus.dll
 
DiscordColor(int)
Creates a new color with specified value.
public DiscordColor(int color)
Parameters
colorintValue 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
rbyteValue of the red component.
gbyteValue of the green component.
bbyteValue 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
rfloatValue of the red component.
gfloatValue of the green component.
bfloatValue of the blue component.
DiscordColor(string)
Creates a new color from specified string representation.
public DiscordColor(string color)
Parameters
colorstringString representation of the color. Must be 6 hexadecimal characters, optionally with # prefix.