Delete circle done:
Acts.prototype.DeleteCircle = function (x,y,radius)
{
var centerX=x;
var centerY=y;
var squareRadius = radius * radius;
var ctx = this.ctx;
var imageData= ctx.getImageData(centerX-radius,centerY-radius,radius+radius,radius+radius);
var pos=0;
for (y = -radius; y <= radius; y++)
for (x = -radius; x <= radius; x++)
{
var total = (x * x) + (y * y);
if (total <= squareRadius)
{
imageData.data[pos] = 0; // R
imageData.data[pos+1] = 0; // G
imageData.data[pos+2] = 0; // B
imageData.data[pos+3] = 0; // A
}
pos+=4;
}
ctx.putImageData(imageData,centerX-radius,centerY-radius);
this.runtime.redraw = true;
this.update_tex = true;
};
But on IPhone it shows just the BG:
<img src="http://consultationmagaliederouin.com/TestPNG/testIPhone.jpg" border="0" />
Any idea on how to make it work on Iphones?