voor rian

Dependencies:   mbed

lib/color.h

Committer:
de_geeter_alexander
Date:
2015-10-23
Revision:
0:ff4d23667e75

File content as of revision 0:ff4d23667e75:



#ifndef COLOR_H
#define COLOR_H

class Color {
    
     
    public:
        Color(int red, int green, int blue);
        Color(int color);
        Color(float red, float green, float blue);  
        int getRed();
        int getGreen();
        int getBlue();
        int getHex();
        int floatToColorValue(float value);
        static const int MAX_COLOR = 255;
        enum colors {
            RED = 0xFF0000,
            GREEN= 0x00FF00,
            BLUE= 0x0000FF,
            CYAN= 0xFFFF00,
            MAGENTA= 0xFF00FF,
            YELLOW= 0xFFFF00,
            WHITE= 0xFFFFFF,
            PINK=0xFF69B4
        };
    private:
        int red, green, blue;
   
    
    
};

#endif