library/src/Color.cpp

33 lines
656 B
C++
Raw Normal View History

#include "Color.hpp"
namespace vkvm {
Color::Color(unsigned char red, unsigned char green, unsigned char blue) noexcept
: red(red), green(green), blue(blue) {
}
auto Color::getRed() -> unsigned char {
return red;
}
auto Color::getGreen() -> unsigned char {
return green;
}
auto Color::getBlue() -> unsigned char {
return blue;
}
auto Color::setRed(unsigned char value) -> void {
red = value;
}
auto Color::setGreen(unsigned char value) -> void {
green = value;
}
auto Color::setBlue(unsigned char value) -> void {
blue = value;
}
}