function drawCircle(x0,y0,r,res) { if (res==undefined) res = 50; //circle resolution beginShape(); var step = Math.PI * 2.0 / res; for (var a=0; a