The Rgb class represents an Rgb color value.
Constructs a black, empty Rgb value.
| Rgb::Rgb |
( |
int |
red, |
|
|
int |
green, |
|
|
int |
blue |
|
) |
| |
Creates an Rgb class using the specified rgb values.
- Parameters
-
| red | The red component in 0..255. |
| green | The green component in 0..255. |
| blue | The blue component in 0..255. |
Returns the blue color component.
- Returns
- The blue color component.
Returns the green color component.
- Returns
- The green color component.
| int Rgb::maxComponent |
( |
) | |
|
Returns the biggest of the 3 color components.
- Returns
- The maximum color component.
| int Rgb::minComponent |
( |
) | |
|
Returns the smallest of the 3 color components.
- Returns
- The minimum color component.
Returns the red color component.
- Returns
- The red color component.
| void Rgb::setBlue |
( |
int |
blue) | |
|
Sets the blue color component.
- Parameters
-
| void Rgb::setGreen |
( |
int |
green) | |
|
Sets the green color component.
- Parameters
-
| The | green color component. |
| void Rgb::setRed |
( |
int |
red) | |
|
Sets the red color component.
- Parameters
-