raven/src/RGB.hpp
2022-03-18 02:49:16 +02:00

26 lines
No EOL
459 B
C++

#pragma once
namespace Raven {
class RGB {
private:
double m_r {0.0};
double m_g {0.0};
double m_b {0.0};
public:
RGB() {}
RGB(double r, double g, double b)
: m_r(r)
, m_g(g)
, m_b(b) {}
void set_r(double r) { m_r = r; }
void set_g(double g) { m_g = g; }
void set_b(double b) { m_b = b; }
double get_r() { return m_r; }
double get_g() { return m_g; }
double get_b() { return m_b; }
};
}