g2chromatic2. written with 0 ai just to see if I could. uses grid22.hpp.

This commit is contained in:
Yggdrasil75
2025-11-12 14:57:37 -05:00
parent ffa2d7ef36
commit f64842d142
7 changed files with 564 additions and 1036 deletions

View File

@@ -25,6 +25,13 @@ public:
static Vec4 RGB(float r, float g, float b, float a = 1.0f) { return Vec4(r, g, b, a); }
static Vec4 RGBA(float r, float g, float b, float a) { return Vec4(r, g, b, a); }
Vec4& recolor(const Vec4 newColor) {
r = newColor.r;
g = newColor.g;
b = newColor.b;
a = newColor.a;
return *this;
}
Vec4 operator+(const Vec4& other) const {
return Vec4(x + other.x, y + other.y, z + other.z, w + other.w);