You need latest flash player to view these. (installation)

Ulala here comes number 50! I have a new toy, a cylinder and that of course means wormholes. The texture is calculated real time by algorithm that draws a line of 128×1 into texture and then scroll it, like this:

var fo:Number = time/100;

var h:int = texture.height – 1;

l = 128

for(i = 0; i < l; i++)

{

dx = (i + (10 + 10*Math.sin(time/100)) + (10 + 10*Math.sin(time/230))) % 128;

r = 128 + 127 * Math.cos(i/10) + fo << 16;

g = 128 + 127 * Math.cos(i/20) + fo << 8;

b = 128 + 127 * Math.cos(i/30) + fo;

color = r | g | b;

texture.setPixel(dx, h, color);

}

texture.scroll(0,-1);

var h:int = texture.height – 1;

l = 128

for(i = 0; i < l; i++)

{

dx = (i + (10 + 10*Math.sin(time/100)) + (10 + 10*Math.sin(time/230))) % 128;

r = 128 + 127 * Math.cos(i/10) + fo << 16;

g = 128 + 127 * Math.cos(i/20) + fo << 8;

b = 128 + 127 * Math.cos(i/30) + fo;

color = r | g | b;

texture.setPixel(dx, h, color);

}

texture.scroll(0,-1);

Next it should bend…

February 9th, 20099:53 am

Gee!

Rotations, bends and warps should strengthen this effect a lot…

I´m curious about it. ;)