22 Rgb(
float red,
float green,
float blue);
24 static Rgb u8(uint8_t red, uint8_t green, uint8_t blue);
45 explicit operator Color()
const;
Object representing a RGB color.
Object representing a RGB color, new version of jngl::Color (which will be deprecated in the future)
Rgb(float red, float green, float blue)
void setBlue(float)
0.0f ... 1.0f
float getRed() const
0.0f ... 1.0f
float getGreen() const
0.0f ... 1.0fu
void setRed(float)
0.0f ... 1.0f
void setGreen(float)
0.0f ... 1.0f
Rgb(Color)
Implicit conversion for backwards compatibility.
float getBlue() const
0.0f ... 1.0f
Color interpolate(Color a, Color b, float t)
Returns a color mix between a (t == 0) and b (t == 1)