Go to the source code of this file.
Data Structures |
class | nux::Color |
Namespaces |
namespace | nux |
Defines |
#define | NUX_COLOR_RGB(r, g, b) |
#define | NUX_COLOR_ARGB(a, r, g, b) ((Color)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff))) |
#define | NUX_RGBA_GET_ALPHA(rgba) ((rgba) >> 24) |
#define | NUX_RGBA_GET_RED(rgba) (((rgba) >> 16) & 0xff) |
#define | NUX_RGBA_GET_GREEN(rgba) (((rgba) >> 8) & 0xff) |
#define | NUX_RGBA_GET_BLUE(rgba) ((rgba) & 0xff) |
#define | NUX_RGBA(r, g, b, a) ((a << 24) | (r << 16) | (g << 8) | b) |
#define | NUX_RGB(r, g, b) ((r << 16) | (g << 8) | b) |
Enumerations |
enum | nux::eColorModel { nux::CM_RGB,
nux::CM_HSV,
nux::CM_HLS,
nux::CM_YUV
} |
enum | nux::eColorChannel {
nux::CC_RED,
nux::CC_GREEN,
nux::CC_BLUE,
nux::CC_HUE,
nux::CC_SATURATION,
nux::CC_LIGHT,
nux::CC_VALUE
} |
Functions |
void | nux::RGBtoHSV (float r, float g, float b, float &h, float &s, float &v) |
void | nux::HSVtoRGB (float &r, float &g, float &b, float h, float s, float v) |
void | nux::HLStoRGB (float &r, float &g, float &b, float hue, float light, float satur) |
void | nux::RGBtoHLS (float rr, float gg, float bb, float &hue, float &light, float &satur) |
Define Documentation
#define NUX_COLOR_ARGB |
( |
|
a, |
|
|
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| ((Color)((((a)&0xff)<<24)|(((r)&0xff)<<16)|(((g)&0xff)<<8)|((b)&0xff))) |
#define NUX_COLOR_RGB |
( |
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| |
#define NUX_RGB |
( |
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| ((r << 16) | (g << 8) | b) |
#define NUX_RGBA |
( |
|
r, |
|
|
|
g, |
|
|
|
b, |
|
|
|
a |
|
) |
| ((a << 24) | (r << 16) | (g << 8) | b) |
#define NUX_RGBA_GET_ALPHA |
( |
|
rgba | ) |
((rgba) >> 24) |
#define NUX_RGBA_GET_BLUE |
( |
|
rgba | ) |
((rgba) & 0xff) |
#define NUX_RGBA_GET_GREEN |
( |
|
rgba | ) |
(((rgba) >> 8) & 0xff) |
#define NUX_RGBA_GET_RED |
( |
|
rgba | ) |
(((rgba) >> 16) & 0xff) |