This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15026 - Need a mechanism to draw elliptical arcs. Once available this can be extended to draw an ellipse. 1. Current methods of drawing them with beziers/quadratic curves do not work well and are approximations. 2. Using arcto/arc followed by scaling distorts the
Summary: Need a mechanism to draw elliptical arcs. Once available this can be extended...
Status: RESOLVED DUPLICATE of bug 14579
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML Canvas 2D Context (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-01 05:23 UTC by contributor
Modified: 2011-12-07 20:48 UTC (History)
8 users (show)

See Also:


Attachments

Description contributor 2011-12-01 05:23:53 UTC
Specification: http://www.w3.org/TR/2dcontext/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
Need a mechanism to draw elliptical arcs. Once available this can be extended
to draw an ellipse.

1. Current methods of drawing them with beziers/quadratic curves do not work
well and are approximations.
2. Using arcto/arc followed by scaling distorts the strokestyle
3. Generating elliptical arcs by approximating lines, etc are tedious to
implement and error prone


Posted from: 192.203.57.28
User agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.41 Safari/535.7
Comment 1 avi 2011-12-01 05:31:08 UTC
Any specific reason why this is not a part of the API? All well known drawing systems support this.
Comment 2 Tab Atkins Jr. 2011-12-01 15:55:18 UTC
This is planned to be added next time canvas paths are revisited, along with a first-class Path object and other things.  So, just wait for it, and it will come.  ^_^
Comment 3 Cameron McCormack 2011-12-01 23:44:50 UTC
When we get to doing this, can we keep in mind that it would be beneficial to use the same objects for both SVG and canvas?  Having two kinds of path object in the platform seems suboptimal.
Comment 4 Ian 'Hixie' Hickson 2011-12-07 20:48:28 UTC

*** This bug has been marked as a duplicate of bug 14579 ***