library/src/Color.h

34 lines
632 B
C
Raw Normal View History

#ifndef LIBRARY_COLOR_H
#define LIBRARY_COLOR_H
2019-10-24 09:38:58 +02:00
/**
* color values represented as rgb values.
* @author Johannes Theiner
* @since 0.1.0
*/
class Color {
private:
unsigned char red;
unsigned char green;
unsigned char blue;
public:
Color(unsigned char red, unsigned char green, unsigned char blue);
unsigned char getRed();
unsigned char getGreen();
unsigned char getBlue();
void setRed(unsigned char value);
void setGreen(unsigned char value);
void setBlue(unsigned char value);
};
2019-11-07 12:54:39 +01:00
const static Color black = Color(0, 0, 0);
const static Color white = Color(255, 255, 255);
#endif