1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:57:46 +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

@ -1492,7 +1492,7 @@ void Painter::for_each_line_segment_on_bezier_curve(const FloatPoint& control_po
static bool can_approximate_elliptical_arc(const FloatPoint& p1, const FloatPoint& p2, const FloatPoint& center, const FloatPoint radii, float x_axis_rotation, float theta_1, float theta_delta)
{
constexpr static float tolerance = 0.5f;
constexpr static float tolerance = 0.3f;
auto half_theta_delta = theta_delta / 2.0f;