Jens Vanhove / RgbLED

Dependencies:   C12832

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RGBColor.h Source File

RGBColor.h

00001 
00002 #ifndef RGBCOLOR_H
00003 #define RGBCOLOR_H
00004 
00005 /** \brief Struct definition for a color made of up of RGB.
00006   */
00007   struct RGBColor
00008   {
00009     RGBColor() : red(0), green(0), blue(0)
00010     {
00011     }
00012     
00013     RGBColor(const float _red, const float _green, const float _blue) : red(_red), green(_green), blue(_blue)
00014     {
00015     }
00016     
00017     float red;
00018     float green;
00019     float blue; 
00020   };
00021   
00022   #endif // RGBCOLOR_H