//Tentacle spool objects Frame 1: function spool(w, h, c) { this.c = c; this.w = w; this.h = h; this.num = 30; this.mx = new Array(); this.my = new Array(); } function wrap(n, limi) { if (n>limi) { n = (n)%limi; } if (n<0) { n = limi-n; n = (n)%limi; n = limi-n; } return n; } spool.prototype.draw = function() { with (this) { theta = ((2*Math.PI)/360)*random(360); mx[num-1] = wrap(mx[num-1]+(w/2)+(Math.cos(theta)*(w/10)), w)-(w/2); my[num-1] = wrap(my[num-1]+(h/2)+(Math.sin(theta)*(h/10)), h)-(h/2); for (i=1; i