Chapter 1

Introduction

The goal of this lab is to design an interactive firework animation. Rather than using random number generation to control where the fireworks go, you will design a number of different firework animations and bind each one to a particular key on the keyboard. People can simulate a random firework animation by pounding away on the keyboard.

Note. For this lab, any function that could have been written with either map or filter must be written with map or filter.

Download the star.ss teachpack here:

http://www.cs.uchicago.edu/~robby/courses/15100-2006-fall/lab6/star.ss.
It defines the star function:
;; star : number number number number mode color -> image
;; to make an `n' pointed star with inner-radius `ir',
;; outer radius `or', and `mode' and `color'
(define (star n ir or mode color) ...)

;; example
(star 20 80 200 'solid 'blue)