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