Autor Zpráva
pozy
Profil *
Ahoj. Nevíte jak tohle udělat? http://www.d4rkw00d.net/stuff/flash/imagination.swf
Hanz
Profil
pozy
Naprogramovat :o)
Tohl není animace, ale nějaký šílený script.
Trixer
Profil
Kua to je cool :) ten clovek co to delal musel bejt fakt dobrej.
Anonymní
Profil *
p = new Array();
count = 0;
p[count] = {x: _xmouse, y: _ymouse, w: 0, col: 0};
count++;
rand = Math.random;
sin = Math.sin;
r = 255;
g = 127;
b = 0;
w = 0;
ri = 0.020000;
gi = 0.015000;
bi = 0.025000;
this.onEnterFrame = function ()
{
vx = _xmouse - oldx + rand() * 2 - 1;
vy = _ymouse - oldy + rand() * 2 - 1;
oldx = _xmouse;
oldy = _ymouse;
p[count] = {x: _xmouse, y: _ymouse, vx: vx * 0.500000, vy: vy * 0.500000, w: sin(w = w + 0.200000) * 5 + 5, col: sin(r = r + ri) * 128 + 127 << 16 | sin(g = g + gi) * 128 + 127 << 8 | sin(b = b + bi) * 128 + 127};
count++;
clear();
moveTo(_xmouse, _ymouse);
for (var i in p)
{
lineStyle(p[i].w, p[i].col);
p[i].x = p[i].x + p[i].vx;
p[i].y = p[i].y + p[i].vy;
if (p[i].y > 380)
{
p[i].y = 380;
p[i].vy = p[i].vy * -0.500000;
p[i].vx = p[i].vx * 0.950000;
} // end if
if (i)
{
curveTo(p[i].x, p[i].y, (Number(p[i].x) + Number(p[i - 1].x)) / 2, (Number(p[i].y) + Number(p[i - 1].y)) / 2);
} // end if
if (p.length > 50)
{
p.splice(0, 1);
count--;
} // end if
} // end of for...in
};
Ondra
Profil
Tak to je opravdu šílený script :-)
Trixer
Profil
Cekal sem delsi ale todle uplne staci :D
Toto téma je uzamčeno. Odpověď nelze zaslat.

0