r/programming • • Dec 20 '10

A Christmas Tree in 1k of Javascript

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

221 comments sorted by

View all comments

2

u/ConstipatedAsshole Dec 20 '10

Is it changing directions by itself? or is that some optical illusion.

3

u/hobophobe Dec 20 '10

It is an optical illusion. One of the interesting things about that form (assuming you mean the GIF in the article, not the tree itself) of it is that individual branches can appear to move in opposite directions simultaneously, because the whole isn't a solid form.