Forum Moderators: open

Message Too Old, No Replies

SVG path that approximates a circle

         

Mister_L

9:57 am on Feb 9, 2015 (gmt 0)

10+ Year Member



Hi,

I'm using a canvas drawing library where I'm required to draw a circle using the SVG path syntax. The library seems to have some bug when the 'arc' command is used, and therefore I want to approximate the circle using Bezier curves (using a syntax of just 'M' and 'C' letters). I want the circle to have a 30px radius, but that might change so I want to know how to do it if needed.

Thanks.

lucy24

4:56 pm on Feb 9, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The library seems to have some bug when the 'arc' command is used

Double-checking: is the bug with the ordinary "arc" syntax? Not with the less widely supported "arcTo"?

Mister_L

6:10 pm on Feb 9, 2015 (gmt 0)

10+ Year Member



No, I was talking about the letter 'a' used in svg path syntax.

lucy24

10:44 pm on Feb 9, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Oops, sorry, you said canvas so I was thinking of canvas drawing commands.