implemented H and V GradientShaders

This commit is contained in:
2026-07-20 14:31:28 -07:00
parent 8a00e42f75
commit ee2c66f97b
11 changed files with 147 additions and 87 deletions
+3 -2
View File
@@ -38,9 +38,10 @@ int main(void) {
UwU::Surface surface = UwU::Surface(w, h, onKey);
UwU::ColorShader fuchsia = UwU::ColorShader(UwU::Color(0xb00b69ff));
// UwU::ColorShader fuchsia = UwU::ColorShader(UwU::Color(0xb00b69ff));
UwU::VGradientShader bisexual = UwU::VGradientShader(69, 420, UwU::Color(0xff0000ff), UwU::Color(0x0000ffff));
UwU::Rectangle rectangle = UwU::Rectangle(69, 69, 420, 420);
rectangle.draw(surface.buffer, fuchsia);
rectangle.draw(surface.buffer, bisexual);
UwU::ColorShader green = UwU::ColorShader(UwU::Color(0x00ff00ff));
UwU::Point point = UwU::Point(187, 37);