Add truecolor support
This commit is contained in:
@ -92,6 +92,25 @@ namespace sc {
|
||||
const trgb magenta {1.0, 0.0, 1.0};
|
||||
const trgb cyan {0.0, 1.0, 1.0};
|
||||
const trgb white {1.0, 1.0, 1.0};
|
||||
|
||||
struct truecolorf {
|
||||
int _r; // 0 .. 255
|
||||
int _g; // 0 .. 255
|
||||
int _b; // 0 .. 255
|
||||
|
||||
truecolorf(int r, int g, int b);
|
||||
};
|
||||
|
||||
struct truecolorb {
|
||||
int _r; // 0 .. 255
|
||||
int _g; // 0 .. 255
|
||||
int _b; // 0 .. 255
|
||||
|
||||
truecolorb(int r, int g, int b);
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const truecolorf& obj);
|
||||
std::ostream& operator<<(std::ostream& out, const truecolorb& obj);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user