#include <Color.hpp>
Definition at line 17 of file Color.hpp.
◆ ~Color()
◆ Color() [1/4]
Default constructor.
- Note
- Set the color to BLACK.
Definition at line 16 of file Color.inl.
◆ Color() [2/4]
FEVV::Color::Color |
( |
const unsigned char |
_redValue, |
|
|
const unsigned char |
_greenValue, |
|
|
const unsigned char |
_blueValue, |
|
|
const unsigned char |
_alphaValue = 255 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | _redValue | the red component. Value must be into [0,255] interval. |
[in] | _greenValue | the green component. Value must be into [0,255] interval. |
[in] | _blueValue | the blue component. Value must be into [0,255] interval. |
[in] | _alphaValue | the alpha transparency. Value must be into [0,255] interval. (Default value = 255) |
Definition at line 23 of file Color.inl.
◆ Color() [3/4]
FEVV::Color::Color |
( |
const unsigned char |
_grayValue, |
|
|
const unsigned char |
_alphaValue = 255 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
[in] | _grayValue | the grey component. Value must be into [0,255] interval. |
[in] | _alphaValue | the alpha transparency. Value must be into [0,255] interval. (Default value = 255) |
Definition at line 33 of file Color.inl.
◆ Color() [4/4]
FEVV::Color::Color |
( |
const Color & |
_color | ) |
|
|
inline |
Copy Constructor.
- Parameters
-
[in] | _color | the color to copy. |
Definition at line 41 of file Color.inl.
◆ Alizarin()
◆ alpha() [1/2]
unsigned char FEVV::Color::alpha |
( |
| ) |
const |
|
inline |
Get the alpha component.
- Returns
- the alpha component.
Definition at line 129 of file Color.inl.
◆ alpha() [2/2]
void FEVV::Color::alpha |
( |
const unsigned char |
_alphaValue | ) |
|
|
inline |
Set the alpha component.
- Parameters
-
[in] | _alphaValue | the alpha component. |
Definition at line 101 of file Color.inl.
◆ Amber()
◆ Amethyst()
◆ Asbestos()
◆ BelizeHole()
◆ Black()
◆ blue() [1/2]
unsigned char FEVV::Color::blue |
( |
| ) |
const |
|
inline |
Get the blue component.
- Returns
- the blue component.
Definition at line 122 of file Color.inl.
◆ blue() [2/2]
void FEVV::Color::blue |
( |
const unsigned char |
_blueValue | ) |
|
|
inline |
Set the blue component.
- Parameters
-
[in] | _blueValue | the blue component. |
Definition at line 94 of file Color.inl.
◆ Blue()
◆ BlueGrey()
◆ Brown()
◆ Carrot()
◆ Clouds()
◆ Concrete()
◆ Cyan()
◆ DeepOrange()
◆ DeepPurple()
◆ Emerald()
◆ green() [1/2]
unsigned char FEVV::Color::green |
( |
| ) |
const |
|
inline |
Get the green component.
- Returns
- the green component.
Definition at line 115 of file Color.inl.
◆ green() [2/2]
void FEVV::Color::green |
( |
const unsigned char |
_greenValue | ) |
|
|
inline |
Set the green component.
- Parameters
-
[in] | _greenValue | the green component. |
Definition at line 87 of file Color.inl.
◆ Green()
◆ GreenSea()
◆ Grey()
◆ Indigo()
◆ LightBlue()
◆ LightGreen()
◆ Lime()
◆ MidnightBlue()
◆ Nephritis()
◆ None()
◆ operator!=()
bool FEVV::Color::operator!= |
( |
const Color & |
_color | ) |
const |
|
inline |
◆ operator*()
FEVV::Color FEVV::Color::operator* |
( |
const double |
_scale | ) |
|
|
inline |
◆ operator*=()
FEVV::Color & FEVV::Color::operator*= |
( |
const double |
_scale | ) |
|
|
inline |
◆ operator+()
◆ operator+=()
◆ operator-()
◆ operator-=()
◆ operator<()
bool FEVV::Color::operator< |
( |
const Color & |
_color | ) |
const |
|
inline |
◆ operator=()
◆ operator==()
bool FEVV::Color::operator== |
( |
const Color & |
_color | ) |
const |
|
inline |
◆ Orange()
◆ PeterRiver()
◆ Pink()
◆ Pomegranate()
◆ Pumpkin()
◆ Purple()
◆ red() [1/2]
unsigned char FEVV::Color::red |
( |
| ) |
const |
|
inline |
Get the red component.
- Returns
- the red component.
Definition at line 108 of file Color.inl.
◆ red() [2/2]
void FEVV::Color::red |
( |
const unsigned char |
_redValue | ) |
|
|
inline |
Set the red component.
- Parameters
-
[in] | _redValue | the red component. |
Definition at line 80 of file Color.inl.
◆ Red()
◆ selfDisplay()
void FEVV::Color::selfDisplay |
( |
std::ostream & |
out | ) |
const |
|
inline |
◆ setRGB()
FEVV::Color & FEVV::Color::setRGB |
( |
const unsigned char |
_redValue, |
|
|
const unsigned char |
_greenValue, |
|
|
const unsigned char |
_blueValue |
|
) |
| |
|
inline |
Set the RGB value to the current Color.
- Note
- The alpha component will be set to 255.
- Parameters
-
[in] | _redValue | the red component. Value must be into [0,255] interval. |
[in] | _greenValue | the green component. Value must be into [0,255] interval. |
[in] | _blueValue | the blue component. Value must be into [0,255] interval. |
Definition at line 51 of file Color.inl.
◆ setRGBA()
FEVV::Color & FEVV::Color::setRGBA |
( |
const unsigned char |
_redValue, |
|
|
const unsigned char |
_greenValue, |
|
|
const unsigned char |
_blueValue, |
|
|
const unsigned char |
_alphaValue = 255 |
|
) |
| |
|
inline |
Set the RGBA value to the current Color.
- Parameters
-
[in] | _redValue | the red component. Value must be into [0,255] interval. |
[in] | _greenValue | the green component. Value must be into [0,255] interval. |
[in] | _blueValue | the blue component. Value must be into [0,255] interval. |
[in] | _alphaValue | the alpha transparency. Value must be into [0,255] interval. (Default value = 255) |
Definition at line 65 of file Color.inl.
◆ Silver()
◆ SunFlower()
◆ Teal()
◆ Turquoise()
◆ WetAsphalt()
◆ White()
◆ Wisteria()
◆ Yellow()
◆ alphaComponent
unsigned char FEVV::Color::alphaComponent |
|
private |
◆ blueComponent
unsigned char FEVV::Color::blueComponent |
|
private |
◆ greenComponent
unsigned char FEVV::Color::greenComponent |
|
private |
◆ redComponent
unsigned char FEVV::Color::redComponent |
|
private |
The documentation for this class was generated from the following files:
- /Users/mac/builds/efd823a3/0/MEPP-team/MEPP2/Base/Color.hpp
- /Users/mac/builds/efd823a3/0/MEPP-team/MEPP2/Base/Color.inl