|
JNGL
Easy to use cross-platform 2D game library
|
Contains jngl::Rgb class. More...
Go to the source code of this file.
Classes | |
| class | Rgb |
| Object representing a RGB color, new version of jngl::Color (which will be deprecated in the future) More... | |
Namespaces | |
| namespace | jngl |
| JNGL's main namespace. | |
Functions | |
| Rgb | interpolate (Rgb a, Rgb b, float t) |
| Returns a color mix between a (t == 0) and b (t == 1) | |
| Rgb | getBackgroundColor () |
| Returns the screen's background color which is visible when nothing is drawn and also used by jngl::Fade. | |
| bool | operator== (Rgb a, Rgb b) |
| Returns true if the two colors are equal in 24 bit SDR space, i.e. | |
| std::ostream & | operator<< (std::ostream &os, Rgb color) |
Prints the color as jngl::Rgb{ red, green, blue } | |
| jngl::Rgb | operator""_rgb (unsigned long long) |
Create a jngl::Rgb object from a literal. E.g. 0x00ff00_rgb for green. | |