|
Marbellous
Marbellous, a WebApp to generate paper marbling patterns.
|
A class representing a RGB color with a ratio. More...
#include <Color.hpp>

Public Types | |
| using | rgb_t = std::tuple< uint8_t, uint8_t, uint8_t > |
Public Member Functions | |
| bool | operator== (const Color &oth) const |
| Color () | |
| Color (uint8_t const red, uint8_t const green, uint8_t const blue) | |
| Color (unsigned const int color) | |
| void | set (uint8_t const red, uint8_t const green, uint8_t const blue) |
| void | set (unsigned const int color) |
| rgb_t | getRGB () const |
| < get color channels More... | |
Friends | |
| class | Palette |
A class representing a RGB color with a ratio.
The ratio influences the drop rate of drops with this color when using the sprinkler.
| using Color::rgb_t = std::tuple<uint8_t, uint8_t, uint8_t> |
|
inline |
Construct black.
|
inline |
Construct color by RGB values.
| r | Red channel |
| g | Green channel |
| b | Blue channel |
|
inline |
Construct a color object from HEX color code.
| c | Color code given in HEX. |
|
inline |
< get color channels
Get the color values.

|
inline |
|
inline |
Set color via color channels.
| r | Red channel |
| g | Green channel |
| b | Blue channel |
|
inline |
Set color via HEX color code.
| c | Color code given in HEX |
|
friend |