MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/eovse/a_christmas_tree_in_1k_of_javascript/c19rwq9/?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/[deleted] Dec 21 '10 If you're having trouble doing it, try turning your head sideways. 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 u/UsernameTaken123 Dec 21 '10 Ya that's what I noticed too, I thought it only worked with the ballet girl.
1
If you're having trouble doing it, try turning your head sideways.
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...
Ya that's what I noticed too, I thought it only worked with the ballet girl.
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!