
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
RGBA color class. More...
#include <gelColor.h>
Public Member Functions | |
| GelRGBA () | |
| Default constructor. | |
| GelRGBA (int red, int green, int blue, int alpha) | |
| Full color constructor. | |
| GelRGBA (int value) | |
| Single color constructor. | |
| GelRGBA (const GelHWColor &col) | |
| GelHWColor constructor. | |
| GelRGBA (const GelColor &col) | |
| GelColor constructor. | |
| GelRGBA (const GelHSLA &col) | |
| GelHSLA constructor. | |
| GelRGBA | operator+ (const GelRGBA &c) const |
| GelRGBA | operator- (const GelRGBA &c) const |
| GelRGBA | operator* (const GelRGBA &c) const |
| GelRGBA | operator/ (const GelRGBA &c) const |
| GelRGBA | operator= (const GelRGBA &c) |
| GelRGBA | operator+= (const GelRGBA &c) |
| GelRGBA | operator-= (const GelRGBA &c) |
| GelRGBA | operator*= (const GelRGBA &c) |
| GelRGBA | operator/= (const GelRGBA &c) |
| bool | operator== (const GelRGBA &c) const |
| bool | operator!= (const GelRGBA &c) const |
Public Attributes | |
| int | r |
| Red component. | |
| int | g |
| Green component. | |
| int | b |
| Blue component. | |
| int | a |
| Alpha component. | |
RGBA color class.
This class stores each color channel as an integer. Range: 0-255.
| gel::GelRGBA::GelRGBA | ( | ) | [inline] |
Default constructor.
| gel::GelRGBA::GelRGBA | ( | int | red, |
| int | green, | ||
| int | blue, | ||
| int | alpha | ||
| ) | [inline] |
Full color constructor.
| red | : Red value. |
| green | : Green value. |
| blue | : Blue value. |
| alpha | : Alpha value. |
| gel::GelRGBA::GelRGBA | ( | int | value | ) | [inline] |
Single color constructor.
| value | : Value to apply to all components. |
| gel::GelRGBA::GelRGBA | ( | const GelHWColor & | col | ) |
GelHWColor constructor.
| col | : Color to assign. |
| gel::GelRGBA::GelRGBA | ( | const GelColor & | col | ) |
GelColor constructor.
| col | : Color to assign. |
| bool gel::GelRGBA::operator== | ( | const GelRGBA & | c | ) | const [inline] |
| bool gel::GelRGBA::operator!= | ( | const GelRGBA & | c | ) | const [inline] |
| int gel::GelRGBA::r |
Red component.
| int gel::GelRGBA::g |
Green component.
| int gel::GelRGBA::b |
Blue component.
| int gel::GelRGBA::a |
Alpha component.
API Documentation by Mark D. Procarione |
Generated by
![]() |