Draw the flag of Morocco in the center of the canvas. It is 300 units wide and 200 units high.

  1. Draw a red rectangle with its top-left corner at (-150, 100). Use the color #C1272D.
  2. Draw a green five-pointed star in the center. Use the color #006233 and a line width of 5.
  3. Draw the star as one connected line. Starting at (0, 42), visit (25, -34), (-40, 13), (40, 13), and (-25, -34). Return to (0, 42) to finish the star.

Flag of Morocco