Refactor in a good state

This commit is contained in:
IlyaShurupov 2024-10-09 14:31:23 +03:00 committed by Ilya Shurupov
parent 4b6e7da994
commit 164359f6aa
21 changed files with 606 additions and 105 deletions

View file

@ -79,6 +79,15 @@ namespace tp {
bool operator==(const RGBA& in) const { return r == in.r && g == in.g && b == in.b && a == in.a; }
static RGBA random() {
return RGBA{
(halnf) randomFloat(),
(halnf) randomFloat(),
(halnf) randomFloat(),
1.f,
};
}
public:
union {
RGB rgbs;