Flag day

Assignment

The quick introduction to racket shows how to make pictures with the slideshow language. The pict documentation shows how to draw other primitives and combine them with functions like hc-append.

Your assignment is to write a function, pr-flag, to draw a flag of Puerto Rico with a specified width in pixels:

(pr-flag 100)

should draw a flag 100 pixels wide.

Note

The pict drawing routines are a little cumbersome. You may want to use the image teachpack instead.