HPS::RGBAColor Class Reference
Public Member Functions | |
HPS_INLINE bool | Equals (RGBAColor const &c, int in_tolerance=32) const |
HPS_INLINE float | Gray () const |
HPS_INLINE bool | IsGray () const |
HPS_INLINE bool | IsValid () const |
HPS_INLINE bool | operator!= (RGBAColor const &c) const |
HPS_INLINE RGBAColor const | operator* (RGBAColor const &c) const |
HPS_INLINE RGBAColor const | operator* (float s) const |
HPS_INLINE RGBAColor const | operator* (RGBColor const &c) const |
HPS_INLINE RGBAColor & | operator*= (RGBAColor const &c) |
HPS_INLINE RGBAColor & | operator*= (float s) |
HPS_INLINE RGBAColor & | operator*= (RGBColor const &c) |
HPS_INLINE RGBAColor const | operator+ (RGBAColor const &c) const |
HPS_INLINE RGBAColor const | operator+ (float s) const |
HPS_INLINE RGBAColor const | operator+ (RGBColor const &c) const |
HPS_INLINE RGBAColor & | operator+= (RGBAColor const &c) |
HPS_INLINE RGBAColor & | operator+= (float s) |
HPS_INLINE RGBAColor & | operator+= (RGBColor const &c) |
HPS_INLINE RGBAColor const | operator- (RGBAColor const &c) const |
HPS_INLINE RGBAColor const | operator- (float s) const |
HPS_INLINE RGBAColor const | operator- (RGBColor const &c) const |
HPS_INLINE RGBAColor & | operator-= (RGBAColor const &c) |
HPS_INLINE RGBAColor & | operator-= (float s) |
HPS_INLINE RGBAColor & | operator-= (RGBColor const &c) |
HPS_INLINE RGBAColor const | operator/ (float s) const |
HPS_INLINE RGBAColor & | operator/= (float s) |
HPS_INLINE bool | operator== (RGBAColor const &c) const |
HPS_INLINE | RGBAColor (float gray, float a=1) |
HPS_INLINE | RGBAColor (float r, float g, float b, float a=1) |
HPS_INLINE | RGBAColor (RGBColor const &c) |
HPS_INLINE | RGBAColor (RGBColor const &c, float a) |
HPS_INLINE | RGBAColor (RGBA32Color const &c32) |
HPS_INLINE | RGBAColor (RGBAS32Color const &c32) |
Static Public Member Functions | |
static HPS_INLINE RGBAColor | Black () |
static HPS_INLINE RGBAColor | Invalid () |
static HPS_INLINE RGBAColor | Nothing () |
static HPS_INLINE RGBAColor | White () |
Public Attributes | |
float | alpha |
float | blue |
float | green |
float | red |
Member Function Documentation
◆ operator!=()
|
inline |
Determines RGBA non-equivalency between this object and argument.
- Parameters
-
c The color object to test against
- Returns
- true if the objects are not equivalent, false otherwise
◆ operator==()
|
inline |
Determines RGBA equivalency between this object and argument.
- Parameters
-
c The color object to test against
- Returns
- true if the objects are equivalent, false otherwise
Member Data Documentation
◆ alpha
float HPS::RGBAColor::alpha |
Alpha component of this color object, from 0.0 to 1.0
◆ blue
float HPS::RGBAColor::blue |
Blue component of this color object, from 0.0 to 1.0
◆ green
float HPS::RGBAColor::green |
Green component of this color object, from 0.0 to 1.0
◆ red
float HPS::RGBAColor::red |
Red component of this color object, from 0.0 to 1.0
The documentation for this class was generated from the following file:
- include/hps.h