Slide 1 of 7 · Settling starter · Computer Science · Year 7
5 minutesWriting Precise Instructions to Draw Vector Shapes on a Grid
When a school badge is enlarged onto a sports banner, a pixel image goes blurry, whereas a vector graphic stays razor-sharp at any size because it stores coordinates and drawing commands.
While the register is called: write your name, class and date on your worksheet, then read section 1 of the stimulus sheet.
Starter question: In the coordinate (7, 10), which number tells you how far to go across the horizontal x-axis, and which number tells you how far to go up the vertical y-axis?
Slide 2 of 7 · Today’s brief and key words · Computer Science · Year 7
5 minutesHow vector graphics draw shapes from coordinates
A vector file stores a list of instructions. Today you will plot a Welsh castle tower badge, fix 3 coordinate bugs in its battlements, work out its perimeter, and write the commands for a symmetrical shield icon.
MOVE_TO (x, y)
Lifts the pen and moves to (x, y) without drawing a line.
LINE_TO (x, y)
Keeps the pen down and draws a straight line from the current point to (x, y).
Line of symmetry
The vertical mirror line is x = 8, so the left and right halves of the castle must match.
Slide 3 of 7 · Step 1 · Plot and debug the castle tower commands
10 minutesStep 1: Find and fix the 3 wrong coordinates
Look at the buggy castle tower in section 2 of the stimulus sheet. Three commands (Commands 4, 6 and 10) have wrong coordinates that twist the battlements. Fix them in the Step 1 table and draw the corrected tower on Grid A.
| Command no. | Buggy command in file | What went wrong on the grid? | Corrected command |
|---|---|---|---|
| Command 4 | LINE_TO (5, 9) |
Only went down to y = 9 instead of y = 8 | LINE_TO (5, 8) |
| Commands 6 & 10 | See stimulus sheet | Explain the error | Write on your sheet |
Slide 4 of 7 · Step 2 · Calculate lengths and perimeter from coordinates
10 minutesStep 2: Calculate the side lengths and total perimeter
You can find the length of any horizontal or vertical line directly from its coordinates, then add all the segments to find the perimeter of the castle tower.
Horizontal length: subtract the x-coordinates (for example, base from (3, 2) to (13, 2) is 13 − 3 = 10 units).
Vertical length: subtract the y-coordinates (for example, left wall from (3, 2) to (3, 10) is 10 − 2 = 8 units).
Watch out for the battlements: remember to include the four 2-unit vertical steps going down and up the two gaps!
Slide 5 of 7 · Step 3 · Write commands for the Welsh shield icon
12 minutesStep 3: Encode the symmetrical shield icon
Look at the 6-vertex shield drawn inside the castle on your stimulus sheet (section 3). Plot the shield onto Grid A, then write the exact 6-command vector script starting at top-left corner A (5, 7) and going clockwise back to A (5, 7).
| Step | Corner | Command to write |
|---|---|---|
| 1 | Start at top-left corner A | MOVE_TO (5, 7) |
| 2 to 6 | Draw clockwise: B → C → D (bottom point) → E → back to A | Use LINE_TO (x, y) for each segment |
Slide 6 of 7 · Step 4 · Vector vs pixel explanation and check
5 minutesStep 4: Explain why the school chose a vector file
Complete Step 4 by explaining why a vector graphic stays sharp when scaled up for a 3-metre sports hall banner, and how you would double the size of the badge mathematically.
Partner check:
1. Did your partner write MOVE_TO for the first command and LINE_TO for the next five commands?
2. Are all coordinates written with brackets and a comma, across first and up second?
Slide 7 of 7 · Plenary · Final answer check
3 minutesPlenary: Check your coordinates and perimeters
Check your completed worksheet against the summary below before handing it in.
| Question | Correct answer |
|---|---|
| 3 fixed castle commands | Cmd 4: LINE_TO (5, 8) · Cmd 6: LINE_TO (7, 10) · Cmd 10: LINE_TO (11, 10) |
| Lengths and perimeters | Base = 10 units · Wall = 8 units · Rectangle = 36 units · Full tower = 44 units |
| Shield commands (1 to 6) | MOVE_TO (5, 7) → LINE_TO (11, 7) → (11, 5) → (8, 3) → (5, 5) → (5, 7) |