JNGL
Easy to use cross-platform 2D game library
|
Object representing a RGB color, new version of jngl::Color (which will be deprecated in the future) More...
#include <jngl/Rgb.hpp>
Public Member Functions | |
Rgb (float red, float green, float blue) | |
Rgb (Color) | |
Implicit conversion for backwards compatibility. | |
float | getRed () const |
0.0f ... 1.0f | |
void | setRed (float) |
0.0f ... 1.0f | |
float | getGreen () const |
0.0f ... 1.0fu | |
void | setGreen (float) |
0.0f ... 1.0f | |
float | getBlue () const |
0.0f ... 1.0f | |
void | setBlue (float) |
0.0f ... 1.0f | |
operator Color () const | |
Conversion for backwards compatibility. | |
Static Public Member Functions | |
static Rgb | u8 (uint8_t red, uint8_t green, uint8_t blue) |
Object representing a RGB color, new version of jngl::Color (which will be deprecated in the future)
Rgb | ( | float | red, |
float | green, | ||
float | blue ) |
red | 0.0f ... 1.0f |
green | 0.0f ... 1.0f |
blue | 0.0f ... 1.0f |
Values over 1.0f will result in 1.0f and negatives will result in 0.0f.