2019-10-29 15:24:57 +01:00
|
|
|
|
|
|
|
#include "Color.h"
|
|
|
|
|
|
|
|
Color::Color(unsigned char red, unsigned char green, unsigned char blue)
|
|
|
|
: red(red), green(green), blue(blue){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-11-07 16:34:15 +01:00
|
|
|
unsigned char Color::getRed() {
|
|
|
|
return red;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char Color::getGreen() {
|
|
|
|
return green;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned char Color::getBlue() {
|
|
|
|
return blue;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Color::setRed(unsigned char value) {
|
|
|
|
red = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Color::setGreen(unsigned char value) {
|
|
|
|
green = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
void Color::setBlue(unsigned char value) {
|
|
|
|
blue = value;
|
|
|
|
}
|
|
|
|
|