Tutorial/Flags/3 Polygons
From Progzoo
Drawing flags: filling polygons.Contents |
Napier
The Napier flag is a red triangle on a white square. It suggests the
letter N.
We create a polygon in order to fill it. The
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Polygon.html
Polygon class is part of the standard awt package. We create a
polygon then add points to it as required.
[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.
[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.
[Font]
[Default]
[Show]
[Resize]
[History]
[Profile]


