So, if this is the code I\'m using to draw a circle on my canvas:
ctx.beginPath(); ctx.arc(centerX, centerY, radius, 0, 2 * Math.PI, false); ctx.lineWidth =
You are asking for the formula for a circle which is:
radius*radius = (x-centerX)*(x-centerX) + (y-centerY)*(y-centerY)
Or if you want to generate n points do something like this:
for (i=0;i