C++:Flags with Lines Tutorial

From Progzoo
Jump to: navigation, search

Interactive Programming Tutorials - Drawing flags using lines.

You may want to look at: [../ht50Graphics/200Lines.xml How to draw thick lines.]

Scotland

The cross of St. Andrew shows diagonal lines on a blue background.

  • Complete the flag by drawing the other diagonal line.
  • The white lines should be slightly thicker - try 60.

Flagscotland.png

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

England

The English flag is the cross of St. George. This is a red cross on a white background.

  • The line thickness should be 1/5 of the height of the flag.

Flagengland.png

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

Botswana

The flag of Botswana has a black stripe on a white stripe on a blue background.

  • The flag is 150 by 100
  • The white stripe has width 30
  • The black stripe has width 20
  • The pale blue has rgb: 110,184,237

Flagbotswana.png

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

Trinidad and Tobago

We can start and end lines outside the confines of the surface.

Flagtrinidad.png

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