Loading...

2007/03/14

256b Java Script

Оказывается даже есть "секта" поклонников кода в 256 байт.
http://www.256b.com/

Некоторые примеры:

Starfield 256b javascript




<body id=B text=snow bgColor=0>
<script> Ф=setInterval("m='p01 256b Starfield'; c=Math.cos;for(ф=0;ф<65;)m+='< p style=position:absolute;top:'+(50+(z=399/(73- (++ф+Ф++&63)))*c(ф*.9))+'%;left:'+(50+z*c(ф)) +(z>> 4?'%>·':'%;color:#456>.');B.innerHTML=m",9)
</script>



Или

Mandelbrot Rotozoom 256b javascript



< pre id = B >< script >setInterval("for(d='p01‡*Ч:,~. ',C=Math.cos(n-=88),S=Math.sin(n),Y=m=1+C,z=2048;z;Y-=m/16)for(d+='<br>' ,X=m;--z&63;X-=m/32,d+=d.charAt(k))for(r=i=k=0;++k+r*r+i*i<13;i=t) t=2*r*i-X*C+Y*S,r=r*r-i*i-X*S-Y*C+C-1;B.innerHTML=d",n=9)</ script >


Этож какой надо иметь мозг чтоб такое писать :)

1 comment:

Anonymous said...

Privet,

Spasiba for the kind words. It's always nice to see heretics of the 256b sect appreciate this obscure art.

You might as well enjoy the 256b.htm competitions that were held in 2002 and had 105 entries plus quite a few bonus entries.

Poka.