added origin to mapper parameters
This commit is contained in:
+3
-3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user