JS1k, 1k Javascript demo contest
category: code [glöplog]
javascript is the new pascal.
It's SO slow on htc desire's webkit. But it does work!
[ej]: Hey, glid you like it. Although I'm sure it was already done in that 256b contest 8 years ago ;)
glid=glad
Dude, glid sounded so much better
Ah, nice stuff. You're probably right, rasmus. Haha.
Hah, this has now made Hackaday! http://hackaday.com/2010/08/08/behind-the-scenes-of-a-1k-graphics-demo/
So... in a bit more than a week, this contest has received about 180 entries.
Am I the onlyone who is not impressed?
We've did more impressive things on a 486 back a decade or so...
We've did more impressive things on a 486 back a decade or so...
Well, probably in your country the parties have more and more submissions, but in mine parties have less and less submissions. Even less and less parties.
So, nowadays, a demo-like contest that receives so many entries in one week impresses me.
But yeah, of course, you guys did much better things in 486 and Amigas, lets tell the kids that they are wasting their time. Lets tell them to go back to facebook.
So, nowadays, a demo-like contest that receives so many entries in one week impresses me.
But yeah, of course, you guys did much better things in 486 and Amigas, lets tell the kids that they are wasting their time. Lets tell them to go back to facebook.
Actually, I don't know why I even answered to someone using the minimalanimal icon :)
The compo page loads so slow now, i guess it`s getting popular. Any cool stuff besides the ones the demoscene dudes have made?
trace, that is the default Icon that I got at my registration...
Anyway...
Anyway...
@p01: I've just submitted the code below. Could you tell me why it is working that shitty on Safari? Thanks.
var m=Math,v=A=w=300,T,e,o,u=[],n=10,l=[0,725,0,645,0,0,-67,0,52,0,0,26,0,81,0,-19,-85,45,n,w,19,-85,45,n,w,0,-72,53,n,110,0,-n,69,n,w,0,15,76,n,w,0,39,76,n,w];d=document;k=d.body.children[0];k.height=w;T=k.getContext('2d');e=T.getImageData(0,0,w,w);o=e.data;setInterval("for(p=0;p<w*w;)o[p*4+3]=u[p++]=0;a=m.sin(v++/9)/6+6;b=-A/w;h=m.sin(a);H=m.cos(a);S=m.sin(b);C=m.cos(b);for(n=0;n<45;){x=l[n++];y=l[n++];z=l[n++];R=l[n++];D=l[n++];r=y*h+z*H;X=(x*C-r*S+w/2)>>.5;Y=(y*H-z*h+w/2)>>.5;Z=x*S+r*C+w;j=(X+R>w)?w:X+R;for(i=Y-R;i<Y+R;i++)for(q=(R<X)?X-R:0;q<j&&i<w;q++){b=i-Y;b=R*R-b*b;a=q-X;a*=a;if(a<b)if((c=m.sqrt(b-a)+Z)>u[p=i*w+q]){if(D)o[p*4+3]=(Z-c)*99/R+D;u[p]=c}}}r=20;for(y=r;y<w-r;y++)for(x=r;x<w-r;)if(u[p=x+++w*y]){for(Y=y-11,B=o[F=p*4+3];Y<5+y;Y+=6)for(X=x-12;X<4+x;X+=6)if((h=u[Y*w+X]-u[p])>3)B+=(h<r)?h:r;o[F]=(B>255)?255:B;}T.putImageData(e,0,0)",9);d.onmousemove=function(e){A=e.clientX-w}
var m=Math,v=A=w=300,T,e,o,u=[],n=10,l=[0,725,0,645,0,0,-67,0,52,0,0,26,0,81,0,-19,-85,45,n,w,19,-85,45,n,w,0,-72,53,n,110,0,-n,69,n,w,0,15,76,n,w,0,39,76,n,w];d=document;k=d.body.children[0];k.height=w;T=k.getContext('2d');e=T.getImageData(0,0,w,w);o=e.data;setInterval("for(p=0;p<w*w;)o[p*4+3]=u[p++]=0;a=m.sin(v++/9)/6+6;b=-A/w;h=m.sin(a);H=m.cos(a);S=m.sin(b);C=m.cos(b);for(n=0;n<45;){x=l[n++];y=l[n++];z=l[n++];R=l[n++];D=l[n++];r=y*h+z*H;X=(x*C-r*S+w/2)>>.5;Y=(y*H-z*h+w/2)>>.5;Z=x*S+r*C+w;j=(X+R>w)?w:X+R;for(i=Y-R;i<Y+R;i++)for(q=(R<X)?X-R:0;q<j&&i<w;q++){b=i-Y;b=R*R-b*b;a=q-X;a*=a;if(a<b)if((c=m.sqrt(b-a)+Z)>u[p=i*w+q]){if(D)o[p*4+3]=(Z-c)*99/R+D;u[p]=c}}}r=20;for(y=r;y<w-r;y++)for(x=r;x<w-r;)if(u[p=x+++w*y]){for(Y=y-11,B=o[F=p*4+3];Y<5+y;Y+=6)for(X=x-12;X<4+x;X+=6)if((h=u[Y*w+X]-u[p])>3)B+=(h<r)?h:r;o[F]=(B>255)?255:B;}T.putImageData(e,0,0)",9);d.onmousemove=function(e){A=e.clientX-w}
Code:
var m=Math,v=A=w=300,T,e,o,u=[],n=10,l=[0,725,0,645,0,0,-67,0,52,0,0,26,0,81,0,-19,-85,45,n,w,19,-85,45,n,w,0,-72,53,n,110,0,-n,69,n,w,0,15,76,n,w,0,39,76,n,w];d=document;k=d.body.children[0];k.height=w;T=k.getContext('2d');e=T.getImageData(0,0,w,w);o=e.data;setInterval("for(p=0;p<w*w;)o[p*4+3]=u[p++]=0;a=m.sin(v++/9)/6+6;b=-A/w;h=m.sin(a);H=m.cos(a);S=m.sin(b);C=m.cos(b);for(n=0;n<45;){x=l[n++];y=l[n++];z=l[n++];R=l[n++];D=l[n++];r=y*h+z*H;X=(x*C-r*S+w/2)>>.5;Y=(y*H-z*h+w/2)>>.5;Z=x*S+r*C+w;j=(X+R>w)?w:X+R;for(i=Y-R;i<Y+R;i++)for(q=(R<X)?X-R:0;q<j&&i<w;q++){b=i-Y;b=R*R-b*b;a=q-X;a*=a;if(a<b)if((c=m.sqrt(b-a)+Z)>u[p=i*w+q]){if(D)o[p*4+3]=(Z-c)*99/R+D;u[p]=c}}}r=20;for(y=r;y<w-r;y++)for(x=r;x<w-r;)if(u[p=x+++w*y]){for(Y=y-11,B=o[F=p*4+3];Y<5+y;Y+=6)for(X=x-12;X<4+x;X+=6)if((h=u[Y*w+X]-u[p])>3)B+=(h<r)?h:r;o[F]=(B>255)?255:B;}T.putImageData(e,0,0)",9);d.onmousemove=function(e){A=e.clientX-w}
http://js1k.com/demo/163 is cool
Texel: woohooo SSAO snowman is back. Yup it works cross browser. Pouet FUBAR'ed the code ( insert spaces and even break HTML entities )
Rasmus: it is indeed.
My favorite entry remains the #6 and its update with "hypnoglow"
Rasmus: it is indeed.
My favorite entry remains the #6 and its update with "hypnoglow"
texel wins!
I tried to fit a chessboard zommer in under the 'tweet'-limit (140 bytes). Failed miserably (203 bytes) but I sumbitted it anyway. Maybe I'll start over with something new.
Shameless plug
http://js1k.com/demo/250
http://js1k.com/demo/250
Sweet :)
p01: your shit is impressive, sir
Merci -_________-
Aardbei is BACK! But not 100% dutch colorscheme, so not optimal :)