From c4d803389c781834216658bc2e24a93c04c6544d Mon Sep 17 00:00:00 2001 From: Annika Date: Sat, 4 Jul 2026 09:10:18 -0700 Subject: [PATCH] sync --- test | Bin 41176 -> 41176 bytes test.cpp | 12 +++++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/test b/test index b3f92863562de68bb382f4d367f709c280e2d749..10e4bd178a5228dd530239df9722d8c6396837e0 100755 GIT binary patch delta 384 zcmca{km<%jrVTTgMIIX~t?u5K@8$68a>TBea$7%cy>)x@8fHFy#=Ob9jY>HmGBYr= zzU6P3Fxk?$iP3WM9%E%4SHqKzI~W-L|IhdjBt1Isd+a;Gz`y{)9=jr#7#JonGBE4} z$-S5~na{+M@x^2h69vZOli!+%Pi`>bWL!463&?Msyc$TROg;l7oq=)+j7pRFOcg{J zIT;vyI^VxIDZ#+-T9{wH0ch@Ids9Qk>6;5pg&4Vk=7KE-I%D!gGZF4zK-;1sK{^yB zZ!l8}1BxS@0agidE!agUu6;2NsMRsjG3uqv-~a!8I!jb4UU2^cvED;Ce3A?d`+;g0 zUYJbQH`n6f1WKmy%eMeU7&gb7|I}stJ~=W~UcirU0b>&13`R%335?(M{Dt&=sx)T`Siq)+v2sKoDXhZ!_248STcFHQ7PwhW(J1V zxBM-WCtDgfFyT{#Sq*p0i|;`Dqar~D$WC5s zrWOfNiEtZ4JJ@Luf1v1|0djq$W7JE@zyJUHbe5=8ykPwWV!elOI3yVu_5;;0ywIDh zX|Bb_43y-T-yCoLQTl!h(G58lnULv PH}$g;lerp8(a.r, b.r, t); mixed.g = this->lerp8(a.g, b.g, t); mixed.b = this->lerp8(a.b, b.b, t); - mixed.a = this->lerp8(a.a, b.a, t); + mixed.a = this->lerp8(a.a, b.a, t); // maybe the alpha channel should be handled differently? return mixed; } @@ -216,14 +216,14 @@ namespace UwU { uint8_t xGrad[w]; uint8_t yGrad[h]; - // determine m and calculate horizontal gradient coefficient + // determine m and calculate horizontal gradient coefficients if (w < 256) { this->gradHigh(w, xGrad); } else { this->gradLow(w, xGrad); } - // determine m and calculate vertical gradient coefficient + // determine m and calculate vertical gradient coefficients if (h < 256) { this->gradHigh(h, yGrad); } else { @@ -242,8 +242,6 @@ namespace UwU { putPixel(x, y, Xmix.r, Xmix.g, Xmix.b, Xmix.a); } } - - return; } @@ -296,7 +294,7 @@ int main(void) { UwU::Color red = UwU::Color(0xff0000ff); UwU::Color green = UwU::Color(0x00ff00ff); UwU::Color blue = UwU::Color(0x0000ffff); - UwU::Color alpha = UwU::Color(0xffffff00); + UwU::Color alpha = UwU::Color(0x00000000); printf("r: %u, g:%u, b:%u, a:%u\n", fuchsia.r, fuchsia.g, fuchsia.b, fuchsia.a); // struct waymini *wm = waymini_create(w, h, on_key, NULL); @@ -306,7 +304,7 @@ int main(void) { draw.rectangle(UwU::Coord2(69, 69), UwU::Coord2(420, 420), fuchsia); - draw.rectangleGradient(UwU::Coord2(200, 200), UwU::Coord2(600, 400), red, blue, blue, red); + draw.rectangleGradient(UwU::Coord2(200, 200), UwU::Coord2(600, 400), red, blue, alpha, red);