4 ms·
here it is at 324 bytes, since your going to end up with scrollbars no matter what, you might as well not worry about document size <canvas id=q width=3000
by seanalltogether 14y ago
here it is at 324 bytes, since your going to end up with scrollbars no matter what, you might as well not worry about document size
<canvas id=q width=3000 height=3000 style=margin:-10><script>for(m=Math.random,p=[],i=0;i<256;p[i++]=1);setInterval('9Style="rgba(0,0,0,.05)"9Rect(0,0,3000,3000)9Style="#0F0";p.map(function(v,i){9Text(String.fromCharCode(3e4+m()*33),i*10,v);p[i]=v>758+m()*1e4?0:v+10})'.split(9).join(';q.getContext("2d").fill'),33)</script>
edit... and at 319
<canvas id=q style=margin:-10><script>for(q.width=q.height=b=3000,m=Math.random,p=[],i=0;i<256;p[i++]=1);setInterval('9Style="rgba(0,0,0,.05)"9Rect(0,0,b,b)9Style="#0F0";p.map(function(v,i){9Text(String.fromCharCode(3e4+m()*33),i*10,v);p[i]=v>758+m()*1e4?0:v+10})'.split(9).join(';q.getContext("2d").fill'),33)</script>
- inoop 14y agoIf this is your thing, why not enter something for js1k? http://js1k.com/2013-spring/ http://js1k.com/2013-spring/
- jpwagner 14y agoThey need to publicize this more. It was really fun in 2010, and I didn't even know they decided to do it annually since!
- moollaza 14y agoLooks like there's already a very similar submission: http://js1k.com/2013-spring/demo/1382 http://js1k.com/2013-spring/demo/1382. This one however is significantly better.
- Guillaume86 14y agonice, and if you want to test it quickly, just paste it in the address bar: data:text/html,<canvas id=q width=3000 height=3000 style=margin:-10><script>for(m=Math.random,p=[],i=0;i<256;p[i++]=1);setInterval('9Style="rgba(0,0,0,.05)"9Rect(0,0,3000,3000)9Style="#0F0";p.map(function(v,i){9Text(String.fromCharCode(3e4+m()*33),i*10,v);p[i]=v>758+m()*1e4?0:v+10})'.split(9).join(';q.getContext("2d").fill'),33)</script>
- flaie 14y agoCould you please explain the 9 thing? 9Style, 9Text etc ? First time seeing this for me. Thank you !
- andypants 14y agoIt's used a delimiter for splitting lines.