CS 2, Winter 2009
Programming for Interactive Digital Arts

SA 7, due Mon, Jan 26

To practice iteration, write a sketch displaying red vertical lines and blue horizontal lines. (These are two separate loops.) The vertical lines get redder from left to right and bluer from top-bottom — from 0 on one side to 255 on the other. The spacing of the lines is controlled by the mouse position — from 10 when it's on the left (respectively top) up to 50 when it's on the right (respectively bottom).

screenshot[applet]

As always, turn in the zipfile on Blackboard, as SA 7 in the Assignments section. In the field where you can type in some information, please tell me roughly how long this assignment took, and if there were any particular difficulties.