MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/eovse/a_christmas_tree_in_1k_of_javascript/c19womn/?context=3
r/programming • u/alecdo • Dec 20 '10
221 comments sorted by
View all comments
10
Does look awesome.
Here's a fun trick for all: You can make that wireframe tree spin either left or right, using naught but your mind!
1 u/protonfish Dec 21 '10 edited Dec 21 '10 I don't think so. But I did stare at it for a while turning my head so touché.To make it actually spin backward you could change the line D+=.02 to D = D -.02Edit: Whoa, that also makes the snow fall up...
1
I don't think so. But I did stare at it for a while turning my head so touché.
To make it actually spin backward you could change the line D+=.02 to D = D -.02
Edit: Whoa, that also makes the snow fall up...
10
u/jtreminio Dec 20 '10
Does look awesome.
Here's a fun trick for all: You can make that wireframe tree spin either left or right, using naught but your mind!