Fun with Flags – Part 2: more flags

Step 1 – Flags with three stripes

In Part One you drew flags with two horizontal stripes, like the Ukrainian flag.

Lots more flags have three stripes.

Flag of LithuaniaProblem – the flag of Lithuania

Remember, the base flag is 180 steps wide and 120 steps tall. If we want three horizontal stripes, each stripe is going to be 40 pixels wide.

The basic colours here are probably:

Code helper image
  1. Write code to draw the Lithuanian flag

    Use the notes above, the screenshot and the code from the Ukrainian flag to help

  2. Run your code to test it out
  3. If it's not quite right the first time, make some changes until you get it right. Use the solution below if you're really stuck

Did you remember to get the turtle pointing in the right direction each time?

An improvement would be to use color("red3") for the bottom third. This is closer to the red in the flag.

Here's a full set of Python turtle colours (opens in a new tab).