I am drawing a circle (r = 100px and lineWidth of 500 px ) in HTML canvas, using the method .arc of canvas API for a google chrome app.
But because of the large lineWidth the inaccuracies in the circle are enlarged, and it doesn't looks like a circle anymore.
Here is a demo http://jsbin.com/ufofor/1/edit
http://jsbin.com/ufofor/30/edit
var c = document.getElementById("canvas");
var g = c.getContext("2d");
var r = 100;
g.lineWidth = 500;
g.arc(505, 505, r,0,2*Math.PI, true);
g.stroke();
Is there any way/hack to make a perfect circle , with a large lineWidth in canvas , using .arc method or any other ?
EDIT
The demo works fine in firefox, but in chrome you will find irregularities in the generated circle.
Thanks @Felix for pointing this out.