Python:Flags with Polygons Tutorial

From Progzoo
Jump to navigation Jump to search

A polygon is a closed shape made up of straight lines (like a triangle or a square). See Python:Polygons for details of how to do this.

Napier

The Napier flag is a red triangle on a white square. It suggests the letter N.
Flagnapier.png

[Font] [Default] [Show] [Resize] [History] [Profile]

Bahamas

To complete the flag of the Bahamas you must add the black triangle which represents the unity and vigour of the people.

  • use color.rgb(.5,.75,1) for the blue
  • use color.rgb(1,1,0) for the yellow

Flagbahamas.png

[Font] [Default] [Show] [Resize] [History] [Profile]

Jamaica

We need to four triangle to draw the flag of Jamaica. If we get it right we will leave a yellow cross.

Flagjamaica.png

[Font] [Default] [Show] [Resize] [History] [Profile]

Seychelles

The Seychelles has a cheerful flag; four triangles and a quadrilateral.

Flagseychelles.png

[Font] [Default] [Show] [Resize] [History] [Profile]