RGBA colour.
More...
#include <Colour.h>
RGBA colour.
Definition at line 34 of file Colour.h.
◆ Colour() [1/2]
Default constructor.
Constructs an opaque black color
◆ Colour() [2/2]
ime::Colour::Colour |
( |
unsigned int |
r, |
|
|
unsigned int |
g, |
|
|
unsigned int |
b, |
|
|
unsigned |
alpha = 255 |
|
) |
| |
Construct the color from its 4 RGBA components.
- Parameters
-
r | Red component |
g | Green component |
b | Blue component |
alpha | Alpha component |
All components must be in the range [0, 255]
◆ operator!=()
bool ime::Colour::operator!= |
( |
const Colour & |
rhs | ) |
|
Check if a colour is not the same as this colour.
- Parameters
-
- Returns
- True if the colours are not the same, otherwise false
◆ operator==()
bool ime::Colour::operator== |
( |
const Colour & |
rhs | ) |
|
Check if a colour is the same as this colour.
- Parameters
-
- Returns
- True if the colours are the same, otherwise false
◆ Black
const Colour ime::Colour::Black |
|
static |
◆ Blue
const Colour ime::Colour::Blue |
|
static |
◆ blue
unsigned int ime::Colour::blue = 0 |
Blue component.
Definition at line 89 of file Colour.h.
◆ Cyan
const Colour ime::Colour::Cyan |
|
static |
◆ Gold
const Colour ime::Colour::Gold |
|
static |
◆ Green
const Colour ime::Colour::Green |
|
static |
◆ green
unsigned int ime::Colour::green = 0 |
Green component.
Definition at line 88 of file Colour.h.
◆ Grey
const Colour ime::Colour::Grey |
|
static |
◆ Magenta
const Colour ime::Colour::Magenta |
|
static |
◆ opacity
unsigned int ime::Colour::opacity = 255 |
◆ Orange
const Colour ime::Colour::Orange |
|
static |
◆ Pink
const Colour ime::Colour::Pink |
|
static |
◆ Purple
const Colour ime::Colour::Purple |
|
static |
◆ Red
◆ red
unsigned int ime::Colour::red = 0 |
Red component.
Definition at line 87 of file Colour.h.
◆ Transparent
const Colour ime::Colour::Transparent |
|
static |
Transparent.
Definition at line 52 of file Colour.h.
◆ Turquoise
const Colour ime::Colour::Turquoise |
|
static |
Turquoise.
Definition at line 50 of file Colour.h.
◆ Violet
const Colour ime::Colour::Violet |
|
static |
◆ White
const Colour ime::Colour::White |
|
static |
◆ Yellow
const Colour ime::Colour::Yellow |
|
static |
The documentation for this class was generated from the following file: