Classes | |
union | n_GColor8 |
Modules | |
Definitions | |
Macros | |
#define | n_GColorFromRGBA(_r, _g, _b, _a) |
#define | n_GColorFromRGB(_r, _g, _b) |
#define | n_GColorFromHEX(_h) |
Typedefs | |
typedef union n_GColor8 | n_GColor8 |
typedef n_GColor8 | n_GColor |
Functions | |
bool | n_gcolor_equal (n_GColor8 a, n_GColor8 b) |
n_GColor8 | n_gcolor_legible_over (n_GColor8 color) |
Color-handling code.
#define n_GColorFromHEX | ( | _h | ) |
Convenience macro to create the closest n_GColor to a hex value (eg 0xFF7700).
#define n_GColorFromRGB | ( | _r, | |
_g, | |||
_b | |||
) |
#define n_GColorFromRGBA | ( | _r, | |
_g, | |||
_b, | |||
_a | |||
) |
Internal representation of colors: now with revolutionary 2-bit-per-channel technology!