#include <colour.h>
Public Member Functions | |
| ColourA (CLR r, CLR g, CLR b, CLR a) | |
| ColourA (const CLR &a) | |
| ColourA (const Colour &d) | |
| CLR | red () const |
| CLR | green () const |
| CLR | blue () const |
| CLR | alpha () const |
| void | add (const ColourA &d) |
| void | sub (const ColourA &d) |
| void | scale (CLR s) |
| void | scale (const ColourA &d) |
| void | scale (const Colour &d) |
| ColourA | scaled (CLR s) const |
| CLR | norm () const |
|
||||||||||||||||||||
|
Constructs new colour form red, green, blue and alpha components. |
|
|
Copy constructor. |
|
|
Construct ColourA from Colour. Alpha component is set to 0. |
|
|
Add ColourA. (What to do with alpha?)
|
|
|
Colour norm.
|
|
|
Scale rgb components componentwise. Alpha is not changed.
|
|
|
Scale colour componentwise. (What to do with alpha?)
|
|
|
Scale colour by float.
|
|
|
|
|
|
Subtract ColourA. (What to do with alpha?)
|
1.3.8