| Question | ||
| * | 1) | Introducing Graphics |
| ** | 2) | Drawing flags with lines |
| *** | 3) | Filling polygons |
| *** | 4) | Using and reusing stars |
| **** | 5) | Flags: using for loops |
| **** | 6) | Flags: Some harder examples |
Drawing pictures is an ideal introduction to programming. Students need to have a good grasp of coordinates to complete these exercises.
Students may wish to refer to the section: How to draw and fill
We use the Image Magick++ library in these examples. There are other libraries available.