added origin to mapper parameters

This commit is contained in:
2026-07-24 19:06:14 -07:00
parent eddbb85256
commit 5298e75fdb
10 changed files with 23 additions and 25 deletions
+3 -3
View File
@@ -38,16 +38,16 @@ int main(void) {
UwU::Surface surface = UwU::Surface(w, h, onKey);
UwU::Color fuchsia = UwU::Color(0xb00b69ff);
// UwU::Color fuchsia = UwU::Color(0xb00b69ff);
UwU::Color red = UwU::Color(0xff0000ff);
UwU::Color green = UwU::Color(0x00ff00ff);
UwU::Color blue = UwU::Color(0x0000ffff);
// UwU::ColorShader fuchsia = UwU::ColorShader(UwU::Color(0xb00b69ff));
UwU::VGradientShader bisexual = UwU::VGradientShader(0, 351, red, blue);
UwU::OffsetMapper rectMapper = UwU::OffsetMapper(69, 69);
UwU::OffsetMapper offsetMapper = UwU::OffsetMapper();
UwU::Rectangle rectangle = UwU::Rectangle(69, 69, 420, 420);
rectangle.draw(surface.buffer, rectMapper, bisexual);
rectangle.draw(surface.buffer, offsetMapper, bisexual);
UwU::ColorShader greenShader = UwU::ColorShader(green);
UwU::NullMapper nullMapper = UwU::NullMapper();