See here every colour and method the discord.Colour class has.
🔽 Go Down 🔽
New in version 2.0.
New in version 2.0.
New in version 2.0.
New in version 2.2.
New in version 2.2.
New in version 1.5.
- Name: "Antarctic Deep"
- Description: "This will appear transparent on Discord’s dark theme."
- Hex: #36393F
- Usage: discord.Colour.dark_theme()
New in version 1.6.
- Name: "insert random colour name here"
- Hex: #insert random hex here
- Usage: discord.Colour.random()
- NOTE: "The random algorithm works by choosing a colour with a random hue but with maxed out saturation and value."
New in version 2.0.
New in version 2.0.
- Description: The raw integer colour value.
- Type: int
- Usage: discord.Colour(...).value
- Description: Returns the red component of the colour.
- Type: int
- Usage: discord.Colour(...).r
- Description: Returns the green component of the colour.
- Type: int
- Usage: discord.Colour(...).g
- Description: Returns the blue component of the colour.
- Type: int
- Usage: discord.Colour(...).b
- Description: Tuple[int, int, int]: Returns an (r, g, b) tuple representing the colour.
- Usage: discord.Colour(...).to_rgb()
- Description: Constructs a Colour from an RGB tuple.
- Usage: discord.Colour.from_rgb(R, G, B)
- Example: discord.Colour.from_rgb(88, 101, 242)
- Description: Constructs a Colour from an HSV tuple.
- Usage: discord.Colour.from_hsv(H, S, V)
- Example: discord.Colour.from_hsv(235, 64, 95)
New in version 2.0.
- Description: Constructs a Colour from a string.
- Usage: discord.Colour.from_str("colour")
- Example: discord.Colour.from_str("#123456")
🔼 Go Up 🔼
ikr