PDA

View Full Version : maths stuff


vulcanpimp
04-22-2004, 11:18 AM
found this from my hard drive from last years stuff

for (var i = 0; i<31; i++) {
_root.createEmptyMovieClip("grad" add i, i+5);
_root["grad" add i].lineStyle(1, 11255 << 16 | Math.sin(t += .1)*127 << 8 | 122, 50);
_root["grad" add i]._x = 200+(220*Math.sin(i*0.01745));
_root["grad" add i]._y = 200+(4*Math.cos(i*0.01745));
_root["grad" add i]._rotation = (i*2);
_root["grad" add i].moveTo(-12, -51);
_root["grad" add i].curveTo(12, 51, 10, 50);
_root["grad" add i].curveTo(12, 51, -10, -50);
_root["grad" add i].curveTo(-22, 151, 10, -70);
_root["grad" add i].onEnterFrame = function() {
this.rot+= (((i-12)*3)+Math.min((_ymouse/15),4))*0.22;
this._rotation+=Math.cos((this.rot-this._rotation)*0.1)*2;
this._yscale =100+(99*Math.cos(0.01745*(this._xscale = 110+(55*Math.cos(0.01745*(t+=((this._x)*0.001))))) ));


};
}



its kind of maths stuff.

pom
04-22-2004, 01:58 PM
All right, here's my math stuff:trace (1+1) ;



Yes, you can insult me now...

CyanBlue
04-22-2004, 02:09 PM
More philosophical version of pom's script... :)
trace(undefined + undefined);

pom
04-22-2004, 03:38 PM
Yeah, philosophy, right! You stole my code!! :D