Exam-style question
Try this first
A student wants to create a simple vector graphic of a coloured rectangle with a diagonal line across it. Explain what should be included in the vector representation and how changing a property would alter the image.
Model answer
What a good answer should say
- The representation should contain a list with a rectangle object and a line object.
- The rectangle should include properties such as its position, width, height, fill colour and outline colour.
- The line should include the positions of its two endpoints and properties such as its colour and line width.
- Changing the rectangle's fill colour would change the colour inside the rectangle without changing its geometry.
Explanation
Why this works
The answer identifies the separate geometric primitives and their properties. It also explains that altering a stored property changes the corresponding feature of the vector image.
Common mistake
No common mistake is linked to this question yet.
