Class Color¶
Defined in File color.hpp
Class Documentation¶
-
class
nyx
::
Color
¶ Color is used for any function that requires a color. There are two ways to construct a color, with integer values given for the r, g, b, and a channels, or a hex number which must include an alpha channel as the final part of the number.
Public Functions
Public Members
-
int
r
¶ the red channel, [0, 255]
-
int
g
¶ the green channel, [0, 255]
-
int
b
¶ the blue channel, [0, 255]
-
int
a
¶ the alpha channel, [0, 255]
-
float
rf
¶ the red channel, [0.0f, 1.0f]
-
float
gf
¶ the green channel, [0.0f, 1.0f]
-
float
bf
¶ the blue channel, [0.0f, 1.0f]
-
float
af
¶ the alpha channel, [0.0f, 1.0f]
-
int