JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
Color.hpp File Reference

Contains jngl::Color class. More...

#include "Rgb.hpp"
Include dependency graph for Color.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Color
 Object representing a RGB color. More...
 

Namespaces

namespace  jngl
 JNGL's main namespace.
 

Functions

Color interpolate (Color a, Color b, float t)
 Returns a color mix between a (t == 0) and b (t == 1)
 
void setBackgroundColor (jngl::Color)
 Sets the screen's background color which is visible when nothing is drawn.
 
void setBackgroundColor (unsigned char red, unsigned char green, unsigned char blue)
 Sets the screen's background color which is visible when nothing is drawn. More...
 
jngl::Color operator""_rgb (unsigned long long)
 Create a jngl::Color object from a literal. E.g. 0x00ff00_rgb for green.
 

Detailed Description

Contains jngl::Color class.

Definition in file Color.hpp.