Difference between revisions of "C#:Flags with Polygons Tutorial"

From Progzoo
Jump to: navigation, search
(Bahamas)
(Bahamas)
Line 39: Line 39:
 
<hint tease='Create a new brush'>
 
<hint tease='Create a new brush'>
 
You can create a new Brush of a given color using '''SolidBrush''' and '''Color.FromArgb'''
 
You can create a new Brush of a given color using '''SolidBrush''' and '''Color.FromArgb'''
  Brush pb = new SolidBrush(Color.FromArgb(127,192,255));
+
 
 +
<pre>Brush pb = new SolidBrush(Color.FromArgb(127,192,255));</pre>
 
</hint>
 
</hint>
 
[[Image:flagbahamas.png|border]]
 
[[Image:flagbahamas.png|border]]

Revision as of 13:57, 6 March 2013

Drawing flags: filling polygons.

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.

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]