Animation Portfolio I

  1. Purple square that moves up when you hit any key.
  2. Throwing star that spins and maybe moves across the screen as time passes.
  3. Sunset with a horizon: sun moves down and goes behind some (non-white) horizon.

Advanced

Learn how to use cond and make a car that drives back and forth across the screen.

Example:

(define model 75)
(cond [(< model 300)
       (rectangle model 10 "solid" "transparent")]
      [else
       (rectangle (- 600 model) 10 "solid" "transparent")])
Last modified October 21, 2021: ICS animations project edit (d49f7e9)