Exam-style question
Try this first
Describe how a vector graphic could represent a simple image containing a rectangle, a circle and a line. Give at least two suitable properties for each object.
Model answer
What a good answer should say
- The vector graphic could contain a list with three objects: a rectangle, a circle and a line.
- The rectangle could have properties such as its position, width, height, fill colour and outline colour.
- The circle could have properties such as its centre position, size and fill colour.
- The line could have properties such as the positions of its start and end points, its outline colour and its line width.
Explanation
Why this works
Vector graphics represent an image as a list of geometric objects. Each object has its own stored properties that define its shape, position and appearance.
The exact properties used depend on the object.
Common mistake
No common mistake is linked to this question yet.
