This is my entry for the third Coding Challenge! Move your mouse left and right to move the tree. :)
The math got pretty dull later on, but it was still fun! Whatever you do, don't see inside. You will get an infinite headache.