1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:27:35 +00:00

LibGfxDemo: Add an elliptic arc next to the Bezier curves

Because why not.
This commit is contained in:
AnotherTest 2021-04-15 04:00:32 +04:30 committed by Andreas Kling
parent 1ea466661f
commit 598a6d46c7

View file

@ -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);