#include <sgl.h>
|
| | Color (double r, double g, double b) |
| |
A Color object represents an RGB color. Color objects are immutable.
◆ Color()
| sgl::Color::Color |
( |
double |
r, |
|
|
double |
g, |
|
|
double |
b |
|
) |
| |
|
inline |
Initializes a Color object. The constructor enforces clamped RGB values (0.0...1.0).
- Parameters
-
| r | the red component of the color |
| g | the green component of the color |
| b | the blue component of the color |
◆ blue
The blue component of the color
◆ green
The green component of the color
◆ red
The red component of the color
The documentation for this class was generated from the following file: