Table of Contents

Constructor DiscordColor

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DiscordColor(int)

Creates a new color with specified value.

public DiscordColor(int color)

Parameters

color int

Value 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 byte

Value of the red component.

g byte

Value of the green component.

b byte

Value 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 float

Value of the red component.

g float

Value of the green component.

b float

Value of the blue component.

DiscordColor(string)

Creates a new color from specified string representation.

public DiscordColor(string color)

Parameters

color string

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