JS1k: The JavaScript code golfing competition
2010 - The Original
- Author:
- Philip Linde
- Twitter:
- @
- GitHub:
- Facebook:
- Google+:
- +
- Reddit:
- /r/
- Pouet:
- Website:
- mixtape.be
- Compo:
- classic
- Demo link:
- https://js1k.com/2010-first/demo/721
- Shortlink:
- https://js1k.com/721
- Blog post:
- please update here!
- Bytes:
- 319
- Chars:
- 319
- Submission
o=" . *";n=0;document.write('<pre id="a"></pre>');f=Math.sin;c=Math.atan2;setInterval(function(){h=32*f(n/40)+32;j=16*f(n/43)+16;k=32*f(n/27)+32;l=16*f(n/29)+16;g="";for(y=0;y<32;y++){for(x=0;x<64;x++)g+=(o[Math.round((c(x-h,y-j)+c(x-k,y-l))/3.14*8+16)%4]);g+="\n";}n++;document.getElementById("a").textContent=g;},10);
- Description
- Simple bending ray demo effect in ASCII.
- Base64 encoded
bz0iIC4gKiI7bj0wO2RvY3VtZW50LndyaXRlKCc8cHJlIGlkPSJhIj48L3ByZT4nKTtmPU1hdGguc2luO2M9TWF0aC5hdGFuMjtzZXRJbnRlcnZhbChmdW5jdGlvbigpe2g9MzIqZihuLzQwKSszMjtqPTE2KmYobi80MykrMTY7az0zMipmKG4vMjcpKzMyO2w9MTYqZihuLzI5KSsxNjtnPSIiO2Zvcih5PTA7eTwzMjt5Kyspe2Zvcih4PTA7eDw2NDt4KyspZys9KG9bTWF0aC5yb3VuZCgoYyh4LWgseS1qKStjKHgtayx5LWwpKS8zLjE0KjgrMTYpJTRdKTtnKz0iXG4iO31uKys7ZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImEiKS50ZXh0Q29udGVudD1nO30sMTApOw==
- Original source
Original source not submitted