-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arc does not respect anti-clockwise if the end angle is exactly 2pi #1736
Labels
Comments
I'm having a similar issue that may be related. This code does not render an arc but same code with Math.PI does.
|
zbjornson
added a commit
that referenced
this issue
Jul 27, 2022
Borrowed from Chromium instead of reinventing the wheel. Firefox's is similar: https://searchfox.org/mozilla-central/source/gfx/2d/PathHelpers.h#127 Fixes #1736 Fixes #1808
zbjornson
added a commit
that referenced
this issue
Jul 27, 2022
Borrowed from Chromium instead of reinventing the wheel. Firefox's is similar: https://searchfox.org/mozilla-central/source/gfx/2d/PathHelpers.h#127 Fixes #1736 Fixes #1808
zbjornson
added a commit
that referenced
this issue
Aug 5, 2022
Borrowed from Chromium instead of reinventing the wheel. Firefox's is similar: https://searchfox.org/mozilla-central/source/gfx/2d/PathHelpers.h#127 Fixes #1736 Fixes #1808
zbjornson
added a commit
that referenced
this issue
Aug 5, 2022
Borrowed from Chromium instead of reinventing the wheel. Firefox's is similar: https://searchfox.org/mozilla-central/source/gfx/2d/PathHelpers.h#127 Fixes #1736 Fixes #1808
zbjornson
added a commit
that referenced
this issue
Aug 5, 2022
Borrowed from Chromium instead of reinventing the wheel. Firefox's is similar: https://searchfox.org/mozilla-central/source/gfx/2d/PathHelpers.h#127 Fixes #1736 Fixes #1808
This was referenced Jun 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue or Feature
I'm having a really strange bug with context2d arcs and I've managed to isolate it to something that appears to some kind of modulo issue when drawing anti-clockwise arcs that ends exactly at 2pi but starts at a value less than 2pi.
Steps to Reproduce
This is the result:
If I change the start angle
let start_angle = 6.283185307179586 + 0.0001; // not exactly 2pi
then it works as expected.(Don't mind the green dot. Its from some other code)
It seems as when the "start angle" is exactly two pi the last argument to
arc()
(true
for anti-clockwise) is not respected and the arc is drawn clockwise anyway.Your Environment
2.6.1
v12.11.1
11.1
The text was updated successfully, but these errors were encountered: