A simple animation of tree rotations created using JavaScript. I created this mainly to learn how to use the requestAnimationFrame
function. To visualize the animation create an HTML document and paste the following piece of code.
<!DOCTYPE> <html> <head> <title>Tree Morph</title> </head> <body> <canvas id="canvas" width="640" height="480"></canvas> <script src="./tmorph.js"></script> </body> </html>