| 
    NanoCanvas
    
   | 
 
#include <Color.hpp>
Public Member Functions | |
| Color () | |
| Color (const unsigned int color) | |
| Construct a color with an unsigned integer value.  More... | |
| Color (Byte _r, Byte _g, Byte _b, Byte _a=255) | |
| Construct color with it's components value in the range [0,255].  More... | |
| Color (int _r, int _g, int _b, int _a=255) | |
| Construct color with it's components value in the range [0,255].  More... | |
| Color (unsigned _r, unsigned _g, unsigned _b, unsigned _a=255) | |
| Construct color with it's components value in the range [0,255].  More... | |
| Color (float _r, float _g, float _b, float _a=1.0f) | |
| Construct color with it's components value in the range [0,1].  More... | |
| operator unsigned int () const | |
| Convert the color to unsigned int as the color code.  More... | |
| Byte & | operator[] (int index) | 
| const Byte | operator[] (int index) const | 
| bool | operator== (const Color &color) | 
| bool | operator< (const Color &color) | 
| Color & | operator= (const unsigned int color) | 
| Color & | operator+= (const Color &color) | 
| Color & | operator-= (const Color &color) | 
| Color & | operator*= (const Color &color) | 
| Color | operator+ (const Color &color) | 
| Color | operator- (const Color &color) | 
| Color | operator* (const Color &color) | 
| Color & | set (unsigned int color) | 
| Color & | set (float _r, float _g, float _b, float _a) | 
| Color & | set (Byte _r, Byte _g, Byte _b, Byte _a) | 
| Color & | set (unsigned _r, unsigned _g, unsigned _b, unsigned _a) | 
| Color & | set (int _r, int _g, int _b, int _a) | 
| unsigned int | code () const | 
| float | redf () const | 
| float | greenf () const | 
| float | bluef () const | 
| float | alphaf () const | 
Static Public Member Functions | |
| static Color | createWidthHSL (float _h, float _s, float _l, float _a=1.0f) | 
Public Attributes | |
| union { | |
| struct { | |
| Byte r | |
| Red value.  More... | |
| Byte g | |
| Green value.  More... | |
| Byte b | |
| Blue value.  More... | |
| Byte a | |
| Alpha value.  More... | |
| } | |
| Byte mem [4] | |
| }; | |
      
  | 
  inline | 
      
  | 
  inline | 
Construct a color with an unsigned integer value.
| color | The color code value | 
Construct color with it's components value in the range [0,255].
| _r | The red component value | 
| _g | The green component value | 
| _b | The blue component value | 
| _a | The alpha component value | 
      
  | 
  inline | 
Construct color with it's components value in the range [0,255].
| _r | The red component value | 
| _g | The green component value | 
| _b | The blue component value | 
| _a | The alpha component value | 
      
  | 
  inline | 
Construct color with it's components value in the range [0,255].
| _r | The red component value | 
| _g | The green component value | 
| _b | The blue component value | 
| _a | The alpha component value | 
      
  | 
  inline | 
Construct color with it's components value in the range [0,1].
| _r | The red component value | 
| _g | The green component value | 
| _b | The blue component value | 
| _a | The alpha component value | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inlinestatic | 
      
  | 
  inline | 
      
  | 
  inline | 
Convert the color to unsigned int as the color code.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
| union { ... } | 
| Byte NanoCanvas::Color::a | 
Alpha value.
| Byte NanoCanvas::Color::b | 
Blue value.
| Byte NanoCanvas::Color::g | 
Green value.
| Byte NanoCanvas::Color::mem[4] | 
| Byte NanoCanvas::Color::r | 
Red value.