DiscordColor class

Wrapper for colors. Simplifies creation and provides interface to interact with colors for nyxx.

Constructors

DiscordColor.fromDouble(double r, double g, double b)
Construct color from individual color components with doubles Values should be from 0.0 to 1.0
DiscordColor.fromHexString(String hexStr)
Construct color from hex String. Leading # will be ignored in process.
DiscordColor.fromInt(int color)
Construct color from int. It allows to create color from hex number and decimal number [...]
DiscordColor.fromRgb(int r, int g, int b)
Construct color from individual color components

Properties

b int
Gets the blue component of this color as an integer.
read-only
g int
Gets the green component of this color as an integer.
read-only
hashCode int
The hash code for this object. [...]
read-only, override
r int
Gets the blue component of this color as an integer.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value int
Int value of color
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override

Static Properties

aquamarine DiscordColor
Aquamarine, or #00FFBF.
final
azure DiscordColor
Azure, or #007FFF.
final
black DiscordColor
A near-black color. Due to API limitations, the color is #010101, rather than #000000, as the latter is treated as no color.
final
blue DiscordColor
Blue, or #0000FF.
final
blurple DiscordColor
Discord Blurple, or #7289DA.
final
brown DiscordColor
Brown, or #A52A2A.
final
chartreuse DiscordColor
Chartreuse, or #7FFF00.
final
cornflowerBlue DiscordColor
Cornflower blue, or #6495ED.
final
cyan DiscordColor
Cyan, or #00FFFF.
final
darkBlue DiscordColor
Dark blue, or #00007F.
final
darkButNotBlack DiscordColor
Discord Dark, But Not Black, or #2C2F33.
final
darkGray DiscordColor
Dark gray, or #A9A9A9.
final
darkGreen DiscordColor
Dark green, or #007F00.
final
darkRed DiscordColor
Dark red, or #7F0000.
final
dartBlue DiscordColor
Dart's primary blue color, or #0175C2
final
dartSecondary DiscordColor
Dart's secondary blue color, or #13B9FD
final
flutterBlue DiscordColor
Flutter blue, or #02569B
final
gold DiscordColor
Gold, or #FFD700.
final
goldenrod DiscordColor
Goldenrod, or #DAA520
final
gray DiscordColor
Gray, or #808080.
final
grayple DiscordColor
Discord Grayple, or #99AAB5.
final
green DiscordColor
Green, or #00FF00.
final
hotPink DiscordColor
Hot pink, or #FF69B4
final
indianRed DiscordColor
Indian red, or #CD5C5C.
final
lightGray DiscordColor
Light gray, or #808080.
final
lilac DiscordColor
Lilac, or #C8A2C8.
final
magenta DiscordColor
Magenta, or #FF00FF.
final
midnightBlue DiscordColor
Midnight blue, or #191970.
final
notQuiteBlack DiscordColor
Discord Not QuiteBlack, or #23272A.
final
orange DiscordColor
Orange, or #FFA500.
final
phthaloBlue DiscordColor
Phthalo blue, or #000F89.
final
phthaloGreen DiscordColor
Phthalo green, or #123524.
final
purple DiscordColor
Purple, or #800080.
final
red DiscordColor
Red, or #FF0000.
final
rose DiscordColor
Rose, or #FF007F.
final
sapGreen DiscordColor
Sap green, or #507D2A.
final
sienna DiscordColor
Sienna, or #882D17.
final
springGreen DiscordColor
Spring green, or #00FF7F.
final
teal DiscordColor
Teal, or #008080.
final
turquoise DiscordColor
Turquoise, or #30D5C8.
final
veryDarkGray DiscordColor
Very dark gray, or #666666.
final
violet DiscordColor
Violet, or #EE82EE.
final
wheat DiscordColor
Wheat, or #F5DEB3.
final
white DiscordColor
White, or #FFFFFF.
final
yellow DiscordColor
Yellow, or #FFFF00.
final

Constants

none → const DiscordColor
Color of null, literally null.
null