30 Rgba(
float red,
float green,
float blue,
float alpha);
31 Rgba(
float red,
float green,
float blue,
Alpha alpha);
34 static Rgba u8(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha);
61 explicit operator Rgb()
const;
Contains jngl::Rgb class.
Object representing only the Alpha Channel in an RGBA color.
Object representing a RGB color, new version of jngl::Color (which will be deprecated in the future)
Object representing a RGBA color.
void setRgb(Rgb color)
Overwrites red, green and blue, but leaves the alpha value untouched.
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
float getAlpha() const
0.0f ... 1.0f
Rgba(float red, float green, float blue, float alpha)
void setGreen(float)
0.0f ... 1.0f
float getBlue() const
0.0f ... 1.0f
void setAlpha(float)
0.0f ... 1.0f
Color interpolate(Color a, Color b, float t)
Returns a color mix between a (t == 0) and b (t == 1)