library/src/Color.cpp

33 lines
491 B
C++
Raw Normal View History

#include "Color.h"
Color::Color(unsigned char red, unsigned char green, unsigned char blue)
: red(red), green(green), blue(blue){
}
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;
}