Canvas ellipse precision
Categories
(Core :: Graphics: Canvas2D, enhancement)
Tracking
()
People
(Reporter: arnaud, Unassigned)
Details
Attachments
(1 file)
930 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
Steps to reproduce:
Using HTML's canvas element, I'm trying to draw an ellipse with a large radius and a circle whose center should be on the ellipse.
The attached code is an example of what I'm trying to accomplish.
This code works on chrome.
Actual results:
The circle center is not on the ellipse because the ellipse is not drawn accurately.
Expected results:
The circle should land on the ellipse, as it does on chrome.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Graphics: Canvas2D' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Extra details: The imprecision seems to be between 1e-5 to 5e-4, which is huge compared to the precision of a float.
Description
•