CS 2, Winter 2009
Programming for Interactive Digital Arts

SA 6, due Thu, Jan 22

To practice motion, write a sketch in which a sun is moving across the window, orbited by a planet. The sun moves in a straight line, and when it exits one side of the window, it appears on the other side. The planet circles around the sun. Set the colors and sizes as you wish. Similarly, the directions and speeds are up to you (specify them, choose them randomly at the start, or let the user set them with key presses), but use variables to hold them so it's clear what they are.

screenshot[applet]

As always, turn in the zipfile on Blackboard, as SA 6 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.