Skip to content
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

Anticlockwise arcs from 0 to 2π are not rendered. #2

Open
eendeego opened this issue Oct 25, 2012 · 1 comment
Open

Anticlockwise arcs from 0 to 2π are not rendered. #2

eendeego opened this issue Oct 25, 2012 · 1 comment

Comments

@eendeego
Copy link
Owner

Browsers implement this by drawing a full circle.

Can't find info on the Canvas spec on this kind of values. Note that going from 0 to 2π in a anticlockwise direction is strange because:

  • startAngle should be greater than endAngle
  • adding 2π to startAngle would result in a 2π to 2π arc => Zero extent
  • subtracting 2π from endAngle would result in a 0 to 0 arc => Zero extent

This is clearly a special case. So, are -4π, -2π, 4π also special cases ?

@eendeego
Copy link
Owner Author

eendeego commented Jan 2, 2013

Add a reference / example with angles going toward 2π and further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant