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

LibGfx+LibWeb: Wire up CanvasRenderingContext2D.ellipse()

Note that this is *extremely* naive, and not very good at being correct.
This commit is contained in:
AnotherTest 2021-04-15 18:41:13 +04:30 committed by Andreas Kling
parent 6c05d6d370
commit 801daf47f0
6 changed files with 104 additions and 12 deletions

View file

@ -160,6 +160,20 @@ public:
elliptical_arc_to(point, { radius, radius }, 0, large_arc, sweep);
}
// Note: This does not do any sanity checks!
void elliptical_arc_to(const FloatPoint& endpoint, const FloatPoint& center, const FloatPoint& radii, double x_axis_rotation, double theta, double theta_delta)
{
append_segment<EllipticalArcSegment>(
endpoint,
center,
radii,
x_axis_rotation,
theta,
theta_delta);
invalidate_split_lines();
}
void close();
void close_all_subpaths();