node-openvg-canvas icon indicating copy to clipboard operation
node-openvg-canvas copied to clipboard

Anticlockwise arcs from 0 to 2π are not rendered.

Open eendeego opened this issue 13 years ago • 1 comments

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 avatar Oct 25 '12 15:10 eendeego

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

eendeego avatar Jan 02 '13 00:01 eendeego