Modify a text file: $/project6.html
$/project6.html
PROJECT 6: Flag
Using the Processing PDE, create a "sketch" to satisfy these specifications:
Draw a rectangle that occupies most (but not all) of the sketch.
Fill the rectangle with thirteen horizontal stripes, alternating red and white
(like those on the American flag).
In the upper-left portion of the striped rectangle, draw a smaller, dark-blue rectangle. (
The height of the smaller, blue rectangle should be about 4/13 the height of the larger rectangle.
)
NOTE: The heights and widths of these rectangles and stripes should depend on the height and width of the window, so that the proportions will look the same when you cahange the arguments of the
size( )
function call in your
setup( )
method.