We create an array of points - this represents the polygon that
gets filled. The variable tri represents three
Points, each
Point has two numbers, the x and y values.
To complete the flag of the Bahamas you must add the black triangle which represents the unity and vigour of the people.
We need to four triangle to draw the flag of Jamaica. If we get it right we will leave a yellow cross.
Each triangle must be given a different name - you can choose your own names or call them ttri, btri, ltri and rtri (for top, bottom, left and right).
The Seychelles has a cheerful flag; four triangles and a quadrilateral.
We tire of coming up with names for our polygons. Our flagging imagination can produce nothing better than p1 and p2.