Re:T * sin (t) ≈ Christmas tree
by zafka on Friday December 27, 2013 @01:55PM
(#6972022)
This reminds me of when I first started programming in Turbo Pascal. I made a Christmas tree using graphic mode and trig functions. I also only used if-then statements so i ended up with about a thousand lines :)
Looking at this more elegant tree reminds me of why I went into this career.
Re:T * sin (t) ≈ Christmas tree
by callmevlad on Friday December 27, 2013 @06:21PM
(#6973083)
Extra credit to anyone who can implement this in HTML/CSS without using the canvas element. Since CSS transformations are hardware accelerated, I bet it can be made to look as smooth as the reference GIF.
Re:T * sin (t) ≈ Christmas tree
by britta on Friday December 27, 2013 @09:45PM
(#6973635)
Several years ago I made a very silly simple Christmas tree in HTML/CSS, with <blink>ing lights and Unicode ornaments, and my friend made a way to place your own choice of "ornaments": http://unicodexmas.com/
http://community.wolfram.com/groups/-/m/t/175891
Press play next to t_0 to animate.
Can you reverse the direction of one of the spirals?
Or maybe slow down one to half-speed?
(Maybe it would look better, maybe not.)
https://github.com/id-Software/Quake-2/blob/master/client/cl...
Not as stylish, but in the spirit!