A few prettifications
[Dynartic.git] / DynImage.js
index 5a3b957..e104743 100644 (file)
@@ -133,6 +133,7 @@ DynImage.prototype.punchImage = function(sx, sy, sw, sh, force, spread) {
        
                        var intensity = Math.sqrt( (i*i) + (j*j) );
                        intensity = Math.pow(2, -intensity / spread);   
+                       if( Math.sqrt( ((sx - x) * (sx - x)) + ((sy - y) * (sy - y))) < sw)
                        this.punchPoint(x, y, intensity * force);
                }
        }       
This page took 0.020458 seconds and 4 git commands to generate.