Class to represent red-green-blue-alpha colours stored to floating point accuracy. More...
#include <rgb.h>
Public Member Functions | |
FloatRGBA () | |
Null constructor. | |
FloatRGBA (const RGBA< float > &c) | |
Copy constructor. | |
FloatRGBA (float vr, float vg, float vb, float va) | |
Initialise from separate components. | |
FloatRGBA (const RGBA< uchar > &c) | |
Initialise from ByteRGBA. More... | |
std::ostream & | write (std::ostream &) const |
Output method. | |
const std::string | format_pov_rgb () const |
const std::string | format_pov_rgbf () const |
![]() | |
RGBA () | |
Null constructor. | |
RGBA (const RGBA &c) | |
Copy constructor. | |
RGBA (floatvr, floatvg, floatvb, floatva) | |
Initialise from separate components. | |
void | operator+= (const RGBA &v) |
Colour addition. | |
void | operator-= (const RGBA &v) |
Colour subtraction. | |
Additional Inherited Members | |
![]() | |
float | r |
Colour component. | |
float | g |
float | b |
float | a |
Class to represent red-green-blue-alpha colours stored to floating point accuracy.
|
inlineexplicit |
Initialise from ByteRGBA.
Byte values [0,255] are normalised to [0.0,1.0]