Harder Flags Tutorial

From Progzoo
Jump to: navigation, search

These examples are rather more complicated. They all involve repetition and you should use loops and create your own methods to solve them.

Malaysia

  • The flag is 392x196 pixels
  • The star is radius 30 pixels with 14 points
  • The blue rectangle has Height 112 and Width 196
  • There are 14 red and white stripes
  • The blue circle's offset from the yellow circle is 15 pixels
  • The star is centred 140 pixels along and 55 down
  • Coordinates of the stars points and other useful information is available in the hints bellow


Model answer has 39 lines.

Flag of Malaysia


Hints:

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

South Korea

  • 300 by 200, red/blue yin-yang symbol with black trigrams.
  • The circle has radius 50
  • The largest black rectangle is 8 by 40
  • The gaps are 2 pixels
  • The rectangles are 30o from horizontal
  • The middle of each trigram is 100 from the center
Flag of South Korea



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

Hints:

United States

Size: 246 by 130. Thirteen red and white stripes. A 5x4 grid of 20 stars interleaved with a 6x5 grid of 30 stars on a blue background.

  • Radius of star: 5
  • Horizontal grid offset: 8
  • Vertical grid offset: 7

Stars and Stripes

Model answer has 39 lines.



Hints:

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