Click to reopen instructions.

Your mission is to draw a flag of the United States. This environment is stripped down from simple-draw: it provides two methods: drawFilledRect like the one in simple-draw and drawStar that draws a single filled star. It also provides the usual width and height variables specifying the size of the drawing area and also three new variables RED, WHITE, and BLUE which provide the color values for the official shades of red, white, and blue for the flag.

Your flag must follow the proportions set out in the US code as summarized in this US Flag specification. In addition to being properly proportioned, your flag should be 90% of the size of the largest properly-proportioned flag that could fit in the drawing area and should be centered horizontally and vertically.

Put definitions here.

Revisions:

Flag

REPL