|
| RGBAf () |
| Default constructor does not perform initialization. More...
|
|
| RGBAf (bool)=delete |
| Converts from an unsigned int. More...
|
|
| RGBAf (const RGBA &color) |
| Converts a RGBA to RGBAf. More...
|
|
| RGBAf (const RGBA &color, double alpha) |
| Converts a RGBA to RGBAf. More...
|
|
| RGBAf (const RGBA &color, float alpha) |
| Converts a RGBA to RGBAf. More...
|
|
| RGBAf (double lum, float a=1.0f) |
| Constructor that sets all color channels to the given value to create a grayscale color. Alpha is set to 1.0f. More...
|
|
| RGBAf (float lum, float a=1.0f) |
| Constructor that sets all color channels to the given value to create a grayscale color. Alpha is set to 1.0f. More...
|
|
| RGBAf (float r, float g, float b, float a=1.f) |
| Filling constructor. More...
|
|
| RGBAf (int)=delete |
| Converts from an unsigned int. More...
|
|
| RGBAf (unsigned color) |
| Converts from an unsigned int. More...
|
|
void | Blend (const RGBAf &color) |
| Blends the given color into this one. More...
|
|
void | Blend (const RGBAf &color, float factor) |
| Blends the given color into this one with the given factor that is applied to all channels. More...
|
|
RGBA | Convert () const |
| Converts this color to RGBA by clipping the values. More...
|
|
float | Luminance () const |
| Returns the luminance of this color as a floating point value between 0 and 1. More...
|
|
| operator int () const |
| Conversion to integer. More...
|
|
| operator RGBA () const |
| Converts this color to RGBA without overflow checking. More...
|
|
| operator std::string () const |
|
bool | operator!= (const RGBAf &other) const |
| Compares two colors. More...
|
|
RGBAf | operator* (const RGBAf &other) const |
|
RGBAf & | operator*= (const RGBAf &other) |
|
RGBAf & | operator= (const int &color) |
| Assignment from int. More...
|
|
RGBAf & | operator= (const RGBA &color) |
| Assignment from RGBA. More...
|
|
RGBAf & | operator= (const RGBAf &)=default |
| Copy assignment. More...
|
|
RGBAf & | operator= (double lum) |
| Assignment from float. More...
|
|
RGBAf & | operator= (float lum) |
| Assignment from float. More...
|
|
bool | operator== (const RGBAf &other) const |
| Compares two colors. More...
|
|
void | Slide (const RGBAf &color, const RGBAf &factor) |
| Blends the given color into this one with the given factor that is applied to color and alpha channels separately. More...
|
|
void | Slide (const RGBAf &color, float factor) |
| Blends the given color into this one with the given factor that is applied to color and alpha channels separately. More...
|
|
void | Slide (const RGBAf &color, float factor_color, float factor_alpha) |
| Blends the given color into this one with the given factor that is applied to color and alpha channels separately. More...
|
|
Represents a four channel 32 bit float per channel color information.