raven/src/RGB.hpp

26 lines
447 B
C++
Raw Normal View History

2022-03-18 02:49:16 +02:00
#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; }
2022-04-30 09:40:09 +03:00
double r() { return m_r; }
double g() { return m_g; }
double b() { return m_b; }
2022-03-18 02:49:16 +02:00
};
}