Back to index

nux  3.0.0
Namespaces | Defines | Functions
Color.cpp File Reference
#include "Color.h"
#include "ColorPrivate.h"
#include <cmath>
#include <cstdlib>
#include <algorithm>

Go to the source code of this file.


namespace  nux
 The Writer singleton is responsible for controlling where the logging message go.
namespace  nux::color


#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)


bool nux::color::operator== (const Color &lhs, const Color &rhs)
bool nux::color::operator!= (const Color &lhs, const Color &rhs)
Color nux::color::RandomColor ()
unsigned int nux::color::RandomColorINT ()
Color nux::color::operator+ (Color const &lhs, Color const &rhs)
Color nux::color::operator- (Color const &lhs, Color const &rhs)
Color nux::color::operator+ (float scalar, Color const &c)
Color nux::color::operator+ (Color const &c, float scalar)
Color nux::color::operator- (float scalar, Color const &c)
Color nux::color::operator- (Color const &c, float scalar)
Color nux::color::operator* (float scalar, Color const &c)
Color nux::color::operator* (Color const &c, float scalar)
void nux::color::RGBtoHSV (float r, float g, float b, float &h, float &s, float &v)
void nux::color::HSVtoRGB (float &r, float &g, float &b, float h, float s, float v)
static float nux::color::HLStoRGB_ (float rn1, float rn2, float huei)
void nux::color::HLStoRGB (float &r, float &g, float &b, float hue, float light, float satur)
void nux::color::RGBtoHLS (float rr, float gg, float bb, float &hue, float &light, float &satur)

Define Documentation

#define NUX_RGBA_GET_ALPHA (   rgba)    ((rgba) >> 24)

Definition at line 30 of file Color.cpp.

#define NUX_RGBA_GET_BLUE (   rgba)    ((rgba) & 0xff)

Definition at line 33 of file Color.cpp.

#define NUX_RGBA_GET_GREEN (   rgba)    (((rgba) >> 8) & 0xff)

Definition at line 32 of file Color.cpp.

#define NUX_RGBA_GET_RED (   rgba)    (((rgba) >> 16) & 0xff)

Definition at line 31 of file Color.cpp.