Public API Reference |
#include <color3.h>
Public Member Functions | |
aeColor3 () | |
Create a new color and initialize it to 1.0, 1.0, 1.0 (white). | |
aeColor3 (float r, float g, float b) | |
Create a new color and initialize it to r, g, b. | |
void | set (float r, float g, float b) |
Set this color to a given RGB value. | |
void | clamp (float r, float g, float b) |
Clamp the color to given RGB values. | |
void | clampDown () |
Check that color components are not negative. | |
void | add (float r, float g, float b) |
Add given RGB values to this color. | |
void | subtract (float r, float g, float b) |
Subtract given RGB values from this color. | |
aeColor3 | operator= (aeColor3 c) |
aeColor3 | operator+ (aeColor3 c) |
aeColor3 | operator- (aeColor3 c) |
aeColor3 | operator * (float num) |
Public Attributes | |
float | red |
The red component of this color. | |
float | green |
The green component of this color. | |
float | blue |
The blue component of this color. |
Definition at line 33 of file color3.h.
|
Create a new color and initialize it to 1.0, 1.0, 1.0 (white).
|
|
Create a new color and initialize it to r, g, b.
|
|
Add given RGB values to this color.
|
|
Clamp the color to given RGB values.
|
|
Check that color components are not negative.
|
|
Set this color to a given RGB value.
|
|
Subtract given RGB values from this color.
|