33 lines
500 B
C++
33 lines
500 B
C++
|
|
#include "Color.h"
|
|
|
|
Color::Color(unsigned char red, unsigned char green, unsigned char blue) noexcept
|
|
: 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;
|
|
}
|
|
|