Base color class.
More...
#include <color.hpp>
|
| static color | from_rgb (float r=0, float g=0, float b=0, float a=255) |
| | Generate a color from standard 0-255 RGBA values. More...
|
| |
| static color | from_rgb_clamped (float r=0, float g=0, float b=0, float a=1) |
| | Generate a color from clamped OpenGL 0-1 RGBA values. More...
|
| |
|
|
float | r = 0 |
| |
|
float | g = 0 |
| |
|
float | b = 0 |
| |
|
float | a = 1 |
| |
◆ from_rgb()
| static color cat3d::color::from_rgb |
( |
float |
r = 0, |
|
|
float |
g = 0, |
|
|
float |
b = 0, |
|
|
float |
a = 255 |
|
) |
| |
|
static |
Generate a color from standard 0-255 RGBA values.
- Parameters
-
◆ from_rgb_clamped()
| static color cat3d::color::from_rgb_clamped |
( |
float |
r = 0, |
|
|
float |
g = 0, |
|
|
float |
b = 0, |
|
|
float |
a = 1 |
|
) |
| |
|
static |
Generate a color from clamped OpenGL 0-1 RGBA values.
- Parameters
-
- Returns
- color
The documentation for this class was generated from the following file: