From 598a6d46c7ac8a51a8c834ed0e2726feb9564233 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Thu, 15 Apr 2021 04:00:32 +0430 Subject: [PATCH] LibGfxDemo: Add an elliptic arc next to the Bezier curves Because why not. --- Userland/Demos/LibGfxDemo/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Demos/LibGfxDemo/main.cpp b/Userland/Demos/LibGfxDemo/main.cpp index c068f089ed..91574524d8 100644 --- a/Userland/Demos/LibGfxDemo/main.cpp +++ b/Userland/Demos/LibGfxDemo/main.cpp @@ -141,7 +141,7 @@ void Canvas::draw() path.quadratic_bezier_curve_to({ 320, 500 }, { 220, 400 }); path.line_to({ 300, 440 }); path.line_to({ 90, 460 }); - path.quadratic_bezier_curve_to({ 260, 500 }, { 200, 540 }); + path.elliptical_arc_to({ 260, 540 }, { 40, 30 }, 0, true, false); path.close(); painter.fill_path(path, Color::Yellow, Gfx::Painter::WindingRule::EvenOdd);