Sway.png

Today Jim has used processing to make an animation of a tree swaying in the breeze. The tree is drawn using recursion, and the angle of the branches is altered each frame by a small amount determined by three sine waves at different frequencies to get a slightly random feel to the movement.



Replies: 0

  1. There are currently no comments.

Leave a Reply