Color¶
-
class
mono::display::
Color
¶ A RGB color representation, generic for display devices.
This class implements a 16-bit RGB 5-6-5 color model. It support methods for calculating color blendings and more.
THe class definition also define a set of global constant predefined colors, like white, red, green, blue and black. Further, it includes a set of the FlatUI colors that Mono uses:
- Clouds
- WetAsphalt
- Concrete
- Silver
- Asbestos
- BelizeHole
- MidnightBlue
- Alizarin
- Turquoise
- Emerald
Public Functions
-
Color
()¶ MARK: Constructors.
MARK: Public contructors.
-
uint8_t
Red
() const¶ MARK: Getters.
Return 8-bit red color component
-
uint8_t
Green
() const¶ Return 8-bit green color component
-
uint8_t
Blue
() const¶ Return 8-bit blue color component
-
Color
scale
(uint8_t factor) const¶ Misc.
Multiply each RGB channel by a factor from 0-255
- Return
- the scaled color
-
Color
blendMultiply
(Color other) const¶ Return the product of two colors
- Return
- the multiply blended color
-
uint8_t *
BytePointer
()¶ MARK: Misc.