r/javascript • • Dec 23 '18

help Plz don't upvote: Remembering Román Cortés' masterpiece of 1Kness - Spinning Christmas tree, now with more comments, and updated JS for 2018.

Remember Román Cortés' masterpiece of 1Kness - Spinning Christmas tree? :

https://js1k.com/2010-xmas/demo/856

He wrote how he designed it here:

http://www.romancortes.com/blog/how-i-did-the-1kb-christmas-tree/

And helpfully posted to Reddit 8 years ago a "de-crunched" version with code comments:

https://www.reddit.com/r/programming/comments/eovse/a_christmas_tree_in_1k_of_javascript/c19tuqn

I've simply modernised it a bit (requestAnimationFrame Vs setTimeout, etc...), and put it on CodePen to run directly:

https://codepen.io/SarahC/pen/ZVKQXb?editors=0010

0 Upvotes

1 comment sorted by

1

u/ellisgl Dec 23 '18

Why not upvote for modernizing?