The flag of Vietnam has a yellow five pointed star on a red background. This star is a popular device on many flags, we define the star once and use it many times in later flags.
The given star has a radius of 100, it is centred on 0,0 which is the wrong place. We must translate to put it in the right place.
We can use the translate method to move the star to the right location. The translate call is to the wrong location - it should be at 200,150.
The flag of Panama requires two stars. We can draw the same star twice.
We can achieve this using translate and
fillPolygon calls.
The flag of Bosnia and Herzegovina includes 9 white stars. Each star is 38 right and 38 below the previous star.