Back to index

nux  3.0.0
Classes | Enumerations | Functions | Variables
nux::color Namespace Reference

Classes

class  Color
class  RedGreenBlue
class  HueSaturationValue
class  HueLightnessSaturation

Enumerations

enum  Model { RGB, HSV, HLS, YUV }
enum  Channel {
  RED, GREEN, BLUE, HUE,
  SATURATION, LIGHT, VALUE
}
enum  Format { FLOAT, HEX, INT }

Functions

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

Variables

const float LumaRed = 0.299f
const float LumaGreen = 0.587f
const float LumaBlue = 0.114f
const Color Transparent (0, 0, 0, 0)
const Color IndianRed (0xCD, 0x5C, 0x5C)
const Color LightCoral (0xF0, 0x80, 0x80)
const Color Salmon (0xFA, 0x80, 0x72)
const Color DarkSalmon (0xE9, 0x96, 0x7A)
const Color LightSalmon (0xFF, 0xA0, 0x7A)
const Color Crimson (0xDC, 0x14, 0x3C)
const Color Red (0xFF, 0x00, 0x00)
const Color FireBrick (0xB2, 0x22, 0x22)
const Color DarkRed (0x8B, 0x00, 0x00)
const Color Pink (0xFF, 0xC0, 0xCB)
const Color LightPink (0xFF, 0xB6, 0xC1)
const Color HotPink (0xFF, 0x69, 0xB4)
const Color DeepPink (0xFF, 0x14, 0x93)
const Color MediumVioletRed (0xC7, 0x15, 0x85)
const Color PaleVioletRed (0xDB, 0x70, 0x93)
const Color Coral (0xFF, 0x7F, 0x50)
const Color Tomato (0xFF, 0x63, 0x47)
const Color OrangeRed (0xFF, 0x45, 0x00)
const Color DarkOrange (0xFF, 0x8C, 0x00)
const Color Orange (0xFF, 0xA5, 0x00)
const Color Gold (0xFF, 0xD7, 0x00)
const Color Yellow (0xFF, 0xFF, 0x00)
const Color LightYellow (0xFF, 0xFF, 0xE0)
const Color LemonChiffon (0xFF, 0xFA, 0xCD)
const Color LightGoldenrodYellow (0xFA, 0xFA, 0xD2)
const Color PapayaWhip (0xFF, 0xEF, 0xD5)
const Color Moccasin (0xFF, 0xE4, 0xB5)
const Color PeachPuff (0xFF, 0xDA, 0xB9)
const Color PaleGoldenrod (0xEE, 0xE8, 0xAA)
const Color Khaki (0xF0, 0xE6, 0x8C)
const Color DarkKhaki (0xBD, 0xB7, 0x6B)
const Color Lavender (0xE6, 0xE6, 0xFA)
const Color Thistle (0xD8, 0xBF, 0xD8)
const Color Plum (0xDD, 0xA0, 0xDD)
const Color Violet (0xEE, 0x82, 0xEE)
const Color Orchid (0xDA, 0x70, 0xD6)
const Color Fuchsia (0xFF, 0x00, 0xFF)
const Color Magenta (0xFF, 0x00, 0xFF)
const Color MediumOrchid (0xBA, 0x55, 0xD3)
const Color MediumPurple (0x93, 0x70, 0xDB)
const Color BlueViolet (0x8A, 0x2B, 0xE2)
const Color DarkViolet (0x94, 0x00, 0xD3)
const Color DarkOrchid (0x99, 0x32, 0xCC)
const Color DarkMagenta (0x8B, 0x00, 0x8B)
const Color Purple (0x80, 0x00, 0x80)
const Color Indigo (0x4B, 0x00, 0x82)
const Color SlateBlue (0x6A, 0x5A, 0xCD)
const Color DarkSlateBlue (0x48, 0x3D, 0x8B)
const Color GreenYellow (0xAD, 0xFF, 0x2F)
const Color Chartreuse (0x7F, 0xFF, 0x00)
const Color LawnGreen (0x7C, 0xFC, 0x00)
const Color Lime (0x00, 0xFF, 0x00)
const Color LimeGreen (0x32, 0xCD, 0x32)
const Color PaleGreen (0x98, 0xFB, 0x98)
const Color LightGreen (0x90, 0xEE, 0x90)
const Color MediumSpringGreen (0x00, 0xFA, 0x9A)
const Color SpringGreen (0x00, 0xFF, 0x7F)
const Color MediumSeaGreen (0x3C, 0xB3, 0x71)
const Color SeaGreen (0x2E, 0x8B, 0x57)
const Color ForestGreen (0x22, 0x8B, 0x22)
const Color Green (0x00, 0x80, 0x00)
const Color DarkGreen (0x00, 0x64, 0x00)
const Color YellowGreen (0x9A, 0xCD, 0x32)
const Color OliveDrab (0x6B, 0x8E, 0x23)
const Color Olive (0x80, 0x80, 0x00)
const Color DarkOliveGreen (0x55, 0x6B, 0x2F)
const Color MediumAquamarine (0x66, 0xCD, 0xAA)
const Color DarkSeaGreen (0x8F, 0xBC, 0x8F)
const Color LightSeaGreen (0x20, 0xB2, 0xAA)
const Color DarkCyan (0x00, 0x8B, 0x8B)
const Color Teal (0x00, 0x80, 0x80)
const Color Aqua (0x00, 0xFF, 0xFF)
const Color Cyan (0x00, 0xFF, 0xFF)
const Color LightCyan (0xE0, 0xFF, 0xFF)
const Color PaleTurquoise (0xAF, 0xEE, 0xEE)
const Color Aquamarine (0x7F, 0xFF, 0xD4)
const Color Turquoise (0x40, 0xE0, 0xD0)
const Color MediumTurquoise (0x48, 0xD1, 0xCC)
const Color DarkTurquoise (0x00, 0xCE, 0xD1)
const Color CadetBlue (0x5F, 0x9E, 0xA0)
const Color SteelBlue (0x46, 0x82, 0xB4)
const Color LightSteelBlue (0xB0, 0xC4, 0xDE)
const Color PowderBlue (0xB0, 0xE0, 0xE6)
const Color LightBlue (0xAD, 0xD8, 0xE6)
const Color SkyBlue (0x87, 0xCE, 0xEB)
const Color LightSkyBlue (0x87, 0xCE, 0xFA)
const Color DeepSkyBlue (0x00, 0xBF, 0xFF)
const Color DodgerBlue (0x1E, 0x90, 0xFF)
const Color CornflowerBlue (0x64, 0x95, 0xED)
const Color MediumSlateBlue (0x7B, 0x68, 0xEE)
const Color RoyalBlue (0x41, 0x69, 0xE1)
const Color Blue (0x00, 0x00, 0xFF)
const Color MediumBlue (0x00, 0x00, 0xCD)
const Color DarkBlue (0x00, 0x00, 0x8B)
const Color Navy (0x00, 0x00, 0x80)
const Color MidnightBlue (0x19, 0x19, 0x70)
const Color Cornsilk (0xFF, 0xF8, 0xDC)
const Color BlanchedAlmond (0xFF, 0xEB, 0xCD)
const Color Bisque (0xFF, 0xE4, 0xC4)
const Color NavajoWhite (0xFF, 0xDE, 0xAD)
const Color Wheat (0xF5, 0xDE, 0xB3)
const Color BurlyWood (0xDE, 0xB8, 0x87)
const Color Tan (0xD2, 0xB4, 0x8C)
const Color RosyBrown (0xBC, 0x8F, 0x8F)
const Color SandyBrown (0xF4, 0xA4, 0x60)
const Color Goldenrod (0xDA, 0xA5, 0x20)
const Color DarkGoldenrod (0xB8, 0x86, 0x0B)
const Color Peru (0xCD, 0x85, 0x3F)
const Color Chocolate (0xD2, 0x69, 0x1E)
const Color SaddleBrown (0x8B, 0x45, 0x13)
const Color Sienna (0xA0, 0x52, 0x2D)
const Color Brown (0xA5, 0x2A, 0x2A)
const Color Maroon (0x80, 0x00, 0x00)
const Color White (0xFF, 0xFF, 0xFF)
const Color Snow (0xFF, 0xFA, 0xFA)
const Color Honeydew (0xF0, 0xFF, 0xF0)
const Color MintCream (0xF5, 0xFF, 0xFA)
const Color Azure (0xF0, 0xFF, 0xFF)
const Color AliceBlue (0xF0, 0xF8, 0xFF)
const Color GhostWhite (0xF8, 0xF8, 0xFF)
const Color WhiteSmoke (0xF5, 0xF5, 0xF5)
const Color Seashell (0xFF, 0xF5, 0xEE)
const Color Beige (0xF5, 0xF5, 0xDC)
const Color OldLace (0xFD, 0xF5, 0xE6)
const Color FloralWhite (0xFF, 0xFA, 0xF0)
const Color Ivory (0xFF, 0xFF, 0xF0)
const Color AntiqueWhite (0xFA, 0xEB, 0xD7)
const Color Linen (0xFA, 0xF0, 0xE6)
const Color LavenderBlush (0xFF, 0xF0, 0xF5)
const Color MistyRose (0xFF, 0xE4, 0xE1)
const Color Gainsboro (0xDC, 0xDC, 0xDC)
const Color LightGrey (0xD3, 0xD3, 0xD3)
const Color Silver (0xC0, 0xC0, 0xC0)
const Color DarkGray (0xA9, 0xA9, 0xA9)
const Color Gray (0x80, 0x80, 0x80)
const Color DimGray (0x69, 0x69, 0x69)
const Color LightSlateGray (0x77, 0x88, 0x99)
const Color SlateGray (0x70, 0x80, 0x90)
const Color DarkSlateGray (0x2F, 0x4F, 0x4F)
const Color Black (0x00, 0x00, 0x00)
const Color Aubergine (0x2B, 0x0B, 0x30)

Enumeration Type Documentation

Enumerator:
RED 
GREEN 
BLUE 
HUE 
SATURATION 
LIGHT 
VALUE 

Definition at line 94 of file Color.h.

Enumerator:
FLOAT 
HEX 
INT 

Definition at line 105 of file Color.h.

  {
    FLOAT,
    HEX,
    INT
  };
Enumerator:
RGB 
HSV 
HLS 
YUV 

Definition at line 86 of file Color.h.

  {
    RGB,
    HSV,
    HLS,
    YUV
  };

Function Documentation

int nux::color::HexToInt ( std::string const &  hex)

Definition at line 54 of file ColorPrivate.cpp.

{
  std::istringstream istr(hex);
  int ret;
  istr >> std::hex >> ret;

  return ret;
}

Here is the caller graph for this function:

bool nux::color::HexToRGBA ( std::string  hex,
float &  r,
float &  g,
float &  b,
float &  a 
)

Definition at line 64 of file ColorPrivate.cpp.

{
  if (!IsValidHex(hex))
    return false;

  if (hex[0] == '#')
    hex.erase(hex.begin());

  a = 1.0f;

  if (hex.length() == 3 || hex.length() == 4)
  {
    r = HexToInt(hex.substr(0, 1) + hex.substr(0, 1)) / 255.0f;
    g = HexToInt(hex.substr(1, 1) + hex.substr(1, 1)) / 255.0f;
    b = HexToInt(hex.substr(2, 1) + hex.substr(2, 1)) / 255.0f;

    if (hex.length() == 4)
      a = HexToInt(hex.substr(3, 1) + hex.substr(3, 1)) / 255.0f;
  }
  else if (hex.length() == 6 || hex.length() == 8)
  {
    r = HexToInt(hex.substr(0, 2)) / 255.0f;
    g = HexToInt(hex.substr(2, 2)) / 255.0f;
    b = HexToInt(hex.substr(4, 2)) / 255.0f;

    if (hex.length() == 8)
      a = HexToInt(hex.substr(6, 2)) / 255.0f;
  }

  return true;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void nux::color::HLStoRGB ( float &  r,
float &  g,
float &  b,
float  hue,
float  light,
float  satur 
)

Definition at line 348 of file Color.cpp.

  {
    // Static method to compute RGB from HLS. The l and s are between [0,1]
    // and h is between [0, 1]. The returned r,g,b triplet is between [0,1].
    hue *= 360.0f;

    float rh, rl, rs, rm1, rm2;
    rh = rl = rs = 0;

    if (hue   > 0)
      rh = hue;

    if (rh > 360.0f)
      rh = 360.0f;

    if (light > 0)
      rl = light;

    if (rl > 1)
      rl = 1;

    if (satur > 0)
      rs = satur;

    if (rs > 1)
      rs = 1.0f;

    if (rl <= 0.5f)
      rm2 = rl * (1.0f + rs);
    else
      rm2 = rl + rs - rl * rs;

    rm1 = 2.0f * rl - rm2;

    if (!rs)
    {
      r = rl;
      g = rl;
      b = rl;
      return;
    }

    r = HLStoRGB_(rm1, rm2, rh + 120);
    g = HLStoRGB_(rm1, rm2, rh);
    b = HLStoRGB_(rm1, rm2, rh - 120);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

static float nux::color::HLStoRGB_ ( float  rn1,
float  rn2,
float  huei 
) [static]

Definition at line 326 of file Color.cpp.

  {
    float hue = huei;

    if (hue > 360.0f)
      hue = hue - 360.0f;

    if (hue < 0.0f)
      hue = hue + 360.0f;

    if (hue < 60.0f )
      return rn1 + (rn2 - rn1) * hue / 60.0f;

    if (hue < 180.0f)
      return rn2;

    if (hue < 240.0f)
      return rn1 + (rn2 - rn1) * (240.0f - hue) / 60.0f;

    return rn1;
  }

Here is the caller graph for this function:

void nux::color::HSVtoRGB ( float &  r,
float &  g,
float &  b,
float  h,
float  s,
float  v 
)

Definition at line 264 of file Color.cpp.

  {
    int i;
    float f, p, q, t;

    // convert h from [0, 1] to [0, 360]
    h = h * 360.0f;

    if (s == 0)
    {
      // achromatic (grey)
      r = g = b = v;
      return;
    }

    h /= 60.0f;         // sector 0 to 5
    i = (int) std::floor(h);
    f = h - i;          // factorial part of h
    p = v * (1 - s);
    q = v * (1 - s * f);
    t = v * (1 - s * (1 - f));

    switch ( i )
    {
      case 0:
        r = v;
        g = t;
        b = p;
        break;
      case 1:
        r = q;
        g = v;
        b = p;
        break;
      case 2:
        r = p;
        g = v;
        b = t;
        break;
      case 3:
        r = p;
        g = q;
        b = v;
        break;
      case 4:
        r = t;
        g = p;
        b = v;
        break;
      default:    // case 5:
        r = v;
        g = p;
        b = q;
        break;
    }
  }

Here is the caller graph for this function:

bool nux::color::IsValidHex ( std::string  hex)

Definition at line 31 of file ColorPrivate.cpp.

{
  static const std::string allowed_chars("0123456789abcdefABCDEF");

  if (hex.empty())
    return false;

  if (hex[0] == '#')
    hex.erase(hex.begin());

  switch (hex.length())
  {
    case 3: // #rgb
    case 4: // #rgba
    case 6: // #rrggbb
    case 8: // #rrggbbaa
      return (hex.find_first_not_of(allowed_chars) == hex.npos);
    default:
      return false;
  }
}

Here is the caller graph for this function:

bool nux::color::operator!= ( const Color &  lhs,
const Color &  rhs 
)

Definition at line 125 of file Color.cpp.

  {
    return !(lhs == rhs);
  }
Color nux::color::operator* ( float  scalar,
Color const &  c 
)

Definition at line 191 of file Color.cpp.

  {
    return Color(c.red * scalar,
                 c.green * scalar,
                 c.blue * scalar,
                 c.alpha * scalar);
  }
Color nux::color::operator* ( Color const &  c,
float  scalar 
)

Definition at line 199 of file Color.cpp.

  {
    return scalar * c;
  }
Color nux::color::operator+ ( Color const &  lhs,
Color const &  rhs 
)

Definition at line 145 of file Color.cpp.

  {
    return Color(lhs.red + rhs.red,
                 lhs.green + rhs.green,
                 lhs.blue + rhs.blue,
                 lhs.alpha + rhs.alpha);
  }
Color nux::color::operator+ ( float  scalar,
Color const &  c 
)

Definition at line 161 of file Color.cpp.

  {
    return Color(c.red + scalar,
                 c.green + scalar,
                 c.blue + scalar,
                 c.alpha + scalar);
  }
Color nux::color::operator+ ( Color const &  c,
float  scalar 
)

Definition at line 169 of file Color.cpp.

  {
    return scalar + c;
  }
Color nux::color::operator- ( Color const &  lhs,
Color const &  rhs 
)

Definition at line 153 of file Color.cpp.

  {
    return Color(lhs.red - rhs.red,
                 lhs.green - rhs.green,
                 lhs.blue - rhs.blue,
                 lhs.alpha - rhs.alpha);
  }
Color nux::color::operator- ( float  scalar,
Color const &  c 
)

Definition at line 174 of file Color.cpp.

  {
    return Color(scalar - c.red,
                 scalar - c.green,
                 scalar - c.blue,
                 scalar - c.alpha);
  }
Color nux::color::operator- ( Color const &  c,
float  scalar 
)

Definition at line 183 of file Color.cpp.

  {
    return Color(c.red - scalar,
                 c.green - scalar,
                 c.blue - scalar,
                 c.alpha - scalar);
  }
bool nux::color::operator== ( const Color &  lhs,
const Color &  rhs 
)

Definition at line 116 of file Color.cpp.

  {
    return (lhs.red == rhs.red &&
            lhs.green == rhs.green &&
            lhs.blue == rhs.blue &&
            lhs.alpha == rhs.alpha &&
            lhs.premultiplied_ == rhs.premultiplied_);
  }

Definition at line 130 of file Color.cpp.

  {
    return Color(RandomColorINT());
  }

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int nux::color::RandomColorINT ( )

Definition at line 135 of file Color.cpp.

  {
    // std::rand isn't defined to be more random than 2^15, so we need
    // to generate the full unsigned in chunks.
    return (((std::rand() % 255) << 24) |
            ((std::rand() % 255) << 16) |
            ((std::rand() % 255) << 8) |
            (std::rand() % 255));
  }

Here is the caller graph for this function:

void nux::color::RGBtoHLS ( float  rr,
float  gg,
float  bb,
float &  hue,
float &  light,
float &  satur 
)

Definition at line 395 of file Color.cpp.

  {
    // Static method to compute HLS from RGB. The r,g,b triplet is between
    // [0,1], hue is between [0,1], light and satur are [0,1].

    float rnorm, gnorm, bnorm, minval, maxval, msum, mdiff, r, g, b;
    r = g = b = 0;

    if (rr > 0)
      r = rr;

    if (r > 1)
      r = 1;

    if (gg > 0)
      g = gg;

    if (g > 1)
      g = 1;

    if (bb > 0)
      b = bb;

    if (b > 1)
      b = 1;

    minval = r;

    if (g < minval)
      minval = g;

    if (b < minval)
      minval = b;

    maxval = r;

    if (g > maxval)
      maxval = g;

    if (b > maxval)
      maxval = b;

    rnorm = gnorm = bnorm = 0;
    mdiff = maxval - minval;
    msum  = maxval + minval;
    light = 0.5f * msum;

    if (maxval != minval)
    {
      rnorm = (maxval - r) / mdiff;
      gnorm = (maxval - g) / mdiff;
      bnorm = (maxval - b) / mdiff;
    }
    else
    {
      satur = hue = 0;
      return;
    }

    if (light < 0.5f)
      satur = mdiff / msum;
    else
      satur = mdiff / (2.0f - msum);

    if (r == maxval)
      hue = 60.0f * (6.0f + bnorm - gnorm);
    else if (g == maxval)
      hue = 60.0f * (2.0f + rnorm - bnorm);
    else
      hue = 60.0f * (4.0f + gnorm - rnorm);

    if (hue > 360)
      hue = hue - 360;

    hue = hue / 360.0f;
  }

Here is the caller graph for this function:

void nux::color::RGBtoHSV ( float  r,
float  g,
float  b,
float &  h,
float &  s,
float &  v 
)

Definition at line 217 of file Color.cpp.

  {
    float mini, maxi, delta;

    mini = std::min(std::min(r, g), b);
    maxi = std::max(std::max(r, g), b);
    v = maxi;

    delta = maxi - mini;


    if (maxi != 0)
    {
      s = delta / maxi;
    }
    else
    {
      // MAX = 0 (i.e. if v = 0), then s is undefined.  r = g = b = 0
      s = 0;
      h = -1;
      return;
    }

    if (delta == 0) // MAX = MIN (i.e. s = 0), then h is undefined. r = g = b
    {
      h = 0;
      s = 0;
      return;
    }

    if (r == maxi)
      h = (g - b) / delta;      // between yellow & magenta
    else if (g == maxi)
      h = 2 + (b - r) / delta;  // between cyan & yellow
    else
      h = 4 + (r - g) / delta;  // between magenta & cyan

    h *= 60;  // degrees

    if (h < 0)
      h += 360;

    // convert h from [0, 360] to [0, 1]
    h = h / 360.0f;

  }

Here is the caller graph for this function:


Variable Documentation

Definition at line 176 of file Colors.h.

Definition at line 184 of file Colors.h.

Definition at line 125 of file Colors.h.

Definition at line 129 of file Colors.h.

Definition at line 202 of file Colors.h.

Definition at line 175 of file Colors.h.

Definition at line 180 of file Colors.h.

Definition at line 154 of file Colors.h.

Definition at line 199 of file Colors.h.

Definition at line 153 of file Colors.h.

Definition at line 145 of file Colors.h.

Definition at line 90 of file Colors.h.

Definition at line 167 of file Colors.h.

Definition at line 157 of file Colors.h.

Definition at line 133 of file Colors.h.

Definition at line 101 of file Colors.h.

Definition at line 164 of file Colors.h.

Definition at line 61 of file Colors.h.

Definition at line 142 of file Colors.h.

Definition at line 152 of file Colors.h.

Definition at line 47 of file Colors.h.

Definition at line 126 of file Colors.h.

Definition at line 147 of file Colors.h.

Definition at line 121 of file Colors.h.

Definition at line 162 of file Colors.h.

Definition at line 193 of file Colors.h.

Definition at line 113 of file Colors.h.

Definition at line 78 of file Colors.h.

Definition at line 93 of file Colors.h.

Definition at line 117 of file Colors.h.

Definition at line 64 of file Colors.h.

Definition at line 92 of file Colors.h.

Definition at line 50 of file Colors.h.

Definition at line 45 of file Colors.h.

Definition at line 119 of file Colors.h.

Definition at line 97 of file Colors.h.

Definition at line 198 of file Colors.h.

Definition at line 132 of file Colors.h.

Definition at line 91 of file Colors.h.

Definition at line 56 of file Colors.h.

Definition at line 140 of file Colors.h.

Definition at line 195 of file Colors.h.

Definition at line 141 of file Colors.h.

Definition at line 49 of file Colors.h.

Definition at line 182 of file Colors.h.

Definition at line 111 of file Colors.h.

Definition at line 86 of file Colors.h.

Definition at line 190 of file Colors.h.

Definition at line 177 of file Colors.h.

Definition at line 68 of file Colors.h.

Definition at line 161 of file Colors.h.

Definition at line 194 of file Colors.h.

Definition at line 112 of file Colors.h.

Definition at line 100 of file Colors.h.

Definition at line 173 of file Colors.h.

Definition at line 55 of file Colors.h.

Definition at line 42 of file Colors.h.

Definition at line 95 of file Colors.h.

Definition at line 183 of file Colors.h.

Definition at line 77 of file Colors.h.

Definition at line 81 of file Colors.h.

Definition at line 186 of file Colors.h.

Definition at line 102 of file Colors.h.

Definition at line 71 of file Colors.h.

Definition at line 137 of file Colors.h.

Definition at line 43 of file Colors.h.

Definition at line 127 of file Colors.h.

Definition at line 72 of file Colors.h.

Definition at line 106 of file Colors.h.

Definition at line 191 of file Colors.h.

Definition at line 54 of file Colors.h.

Definition at line 46 of file Colors.h.

Definition at line 120 of file Colors.h.

Definition at line 139 of file Colors.h.

Definition at line 196 of file Colors.h.

Definition at line 135 of file Colors.h.

Definition at line 70 of file Colors.h.

Definition at line 103 of file Colors.h.

Definition at line 104 of file Colors.h.

Definition at line 185 of file Colors.h.

const float nux::color::LumaBlue = 0.114f

Definition at line 33 of file Colors.cpp.

const float nux::color::LumaGreen = 0.587f

Definition at line 32 of file Colors.cpp.

const float nux::color::LumaRed = 0.299f

Definition at line 31 of file Colors.cpp.

Definition at line 87 of file Colors.h.

Definition at line 168 of file Colors.h.

Definition at line 118 of file Colors.h.

Definition at line 146 of file Colors.h.

Definition at line 88 of file Colors.h.

Definition at line 89 of file Colors.h.

Definition at line 109 of file Colors.h.

Definition at line 143 of file Colors.h.

Definition at line 107 of file Colors.h.

Definition at line 131 of file Colors.h.

Definition at line 57 of file Colors.h.

Definition at line 149 of file Colors.h.

Definition at line 174 of file Colors.h.

Definition at line 187 of file Colors.h.

Definition at line 74 of file Colors.h.

Definition at line 155 of file Colors.h.

Definition at line 148 of file Colors.h.

Definition at line 181 of file Colors.h.

Definition at line 116 of file Colors.h.

Definition at line 115 of file Colors.h.

Definition at line 65 of file Colors.h.

Definition at line 63 of file Colors.h.

Definition at line 85 of file Colors.h.

Definition at line 76 of file Colors.h.

Definition at line 105 of file Colors.h.

Definition at line 128 of file Colors.h.

Definition at line 58 of file Colors.h.

Definition at line 73 of file Colors.h.

Definition at line 75 of file Colors.h.

Definition at line 163 of file Colors.h.

Definition at line 53 of file Colors.h.

Definition at line 83 of file Colors.h.

Definition at line 136 of file Colors.h.

Definition at line 94 of file Colors.h.

Definition at line 48 of file Colors.h.

Definition at line 159 of file Colors.h.

Definition at line 144 of file Colors.h.

Definition at line 165 of file Colors.h.

Definition at line 44 of file Colors.h.

Definition at line 160 of file Colors.h.

Definition at line 110 of file Colors.h.

Definition at line 179 of file Colors.h.

Definition at line 166 of file Colors.h.

Definition at line 192 of file Colors.h.

Definition at line 138 of file Colors.h.

Definition at line 96 of file Colors.h.

Definition at line 197 of file Colors.h.

Definition at line 172 of file Colors.h.

Definition at line 108 of file Colors.h.

Definition at line 134 of file Colors.h.

Definition at line 158 of file Colors.h.

Definition at line 122 of file Colors.h.

Definition at line 82 of file Colors.h.

Definition at line 62 of file Colors.h.

Definition at line 39 of file Colors.h.

Definition at line 130 of file Colors.h.

Definition at line 84 of file Colors.h.

Definition at line 156 of file Colors.h.

Definition at line 171 of file Colors.h.

Definition at line 178 of file Colors.h.

Definition at line 69 of file Colors.h.

Definition at line 114 of file Colors.h.