Animation Portfolio I
- Purple square that moves up when you hit any key.
- Throwing star that spins and maybe moves across the screen as time passes.
- 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")])