Question
drawFlagOfTheEU(canvas, x0, y0, x1, y1) [10 pts] [manually graded] Write the function drawFlagOfTheEU(canvas, x0, y0, x1, y1) that takes a canvas to draw on, and
drawFlagOfTheEU(canvas, x0, y0, x1, y1) [10 pts] [manually graded] Write the function drawFlagOfTheEU(canvas, x0, y0, x1, y1) that takes a canvas to draw on, and four values -- x0, y0, x1, y1 -- that describe the rectangular region with left-top at (x0, y0) and right-bottom at (x1, y1). This function should draw the flag of the European Union so that it fills the given rectangular region. Here is that flag: You should also draw the label "European Union" a bit above the flag. Also note that you may use circles instead of stars. (If you really want to draw stars, you may, but this is considerably harder and won't provide extra points.) Note: You don't have to be "pixel-perfect" with things like the exact radius of the ring, color matching, etc. Just be visually close, with key details like the number of circles correct. Our solution looks like this:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started