#include <Color.h>
Public Member Functions | |
Color (float red, float green, float blue, float alpha) | |
Color () | |
float | getRed () const |
float | getGreen () const |
float | getBlue () const |
float | getAlpha () const |
void | setRed (float red) |
void | setGreen (float green) |
void | setBlue (float blue) |
void | setAlpha (float alpha) |
float | diff (const Color &c) const |
|
Constructs a Color with the specified values.
|
|
Constructs a Color with all values set to zero. |
|
Computes the four value differences (red, green, blue, alpha) between this Color and the specified Color, and returns the maximum value difference.
|
|
Returns the alpha value.
|
|
Returns the blue color value.
|
|
Returns the green color value.
|
|
Returns the red color value.
|
|
Sets the alpha value.
|
|
Sets the blue color value.
|
|
Sets the green color value.
|
|
Sets the red color value.
|