Monday, October 26, 2009

Homework 7: Some Cases Studies

Brian Houng 96470026
Java Applet Link: http://ss24.mcu.edu.tw/~s6470026/Homework7/

In this processing code, we learned the rotating function and how it applies to the objects we draw. First we created lines to draw a grid for the squares. Then we drew three squares with different colors that are rotated evenly in the frame. Afterwards, we created an animation to simulate a fan motion. I got a little more creative with the process and made the fan increase it's velocity over time, and increased in size over time as well. Using the mode function, we I was able to make the rotating fan increase in velocity and size, and then after a condition - decrease in velocity and size as well.

1 comment: