diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-04-15 04:00:32 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-15 17:50:16 +0200 |
commit | 598a6d46c7ac8a51a8c834ed0e2726feb9564233 (patch) | |
tree | 41f8f38b935701a93274056f20e20b462bd44460 | |
parent | 1ea466661f83f8866dfbe60307d015aaafddfb8f (diff) | |
download | serenity-598a6d46c7ac8a51a8c834ed0e2726feb9564233.zip |
LibGfxDemo: Add an elliptic arc next to the Bezier curves
Because why not.
-rw-r--r-- | Userland/Demos/LibGfxDemo/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |