Slide 1 of 7 · Settling starter · Art · Year 4
5 minutesCoding a Pixel Art Welsh Dragon
A computer screen is made of tiny squares called pixels. A code tells the computer what colour each square should be. Today you will follow a code to draw a Welsh dragon.
While the register is called: write your name, class and date on your worksheet and get out a pencil and your red and green coloured pencils.
Starter question: Row 1 of the dragon code is 9W 2R 1W. Read it left to right. What does it tell you to colour, and what do the numbers add up to?
Slide 2 of 7 · Today’s brief and key words · Art · Year 4
3 minutesYour brief: check the code, run it, fix it, shorten it
You will add up each row of code, colour the dragon on a 12 by 10 grid, count the pixels, hunt for bugs in Gruff’s copy, write loops, then code your own picture for a partner to test.
Pixel
One tiny square on a screen. Every row of our grid is 12 pixels wide.
Bug
A mistake in code. Adding up finds some bugs, but you must test the picture too.
Loop
Repeats part of the code. repeat 4 times [2R 1W] makes RRW RRW RRW RRW.
Slide 3 of 7 · Steps 1 and 2: check the code, then run it · Art · Year 4
16 minutesStep 1: add up every row. Step 2: colour the dragon
Step 1: write the total for each of the 10 rows as a number sentence. Every row must make 12. Step 2: follow the code row by row and colour the grid. Leave white squares empty.
| Row | Code | Total (must be 12) |
|---|---|---|
| 1 | 9W 2R 1W |
9 + 2 + 1 = 12 |
| 2 | 8W 4R |
8 + 4 = 12 |
Slide 4 of 7 · Steps 3 and 4: count the pixels, hunt the bugs · Art · Year 4
15 minutesStep 3: count the pixels. Step 4: find Gruff’s 3 bugs
Step 3: count the red, white and green squares and check the total with a multiplication. Step 4: Gruff copied rows 3, 5 and 8 and made one mistake in each. Add up each row, then fix the code.
Step 3 check: the grid has 10 rows of 12, so 12 × 10 = 120. Do your three colour counts add up to 120?
Step 4, row 5: Gruff wrote 2W 3R 1W 3R 4W. 2 + 3 + 1 + 3 + 4 = 13, so it is wrong. Fixed code: 2W 3R 1W 3R 3W.
Slide 5 of 7 · Steps 5 and 6: loops and your own pixel art · Art · Year 4
12 minutesStep 5: write loops. Step 6: code your own picture
Step 5: write a loop for each coloured row on your sheet and a number sentence to prove it makes 12. Step 6: design a picture on the 12 by 6 grid, write the code for each row, then swap codes with a partner.
Loop (a): repeat 6 times [1R 1W] → 6 × 2 = 12
Own picture idea: a daffodil, a love spoon or a harp. Example row 1 of a tulip: 5W 2R 5W, 5 + 2 + 5 = 12.
Slide 6 of 7 · Self and partner check · Art · Year 4
4 minutesCheck your work against the success criteria
Look back through your sheet with your partner. Tick each point once you can point to the proof on your worksheet.
- I can follow a code in the right order to make a picture.
- I can add the numbers in each row and check they make 12.
- I can count the squares of each colour and check my total with a multiplication.
- I can find and fix bugs in a code, and explain how I found them.
Slide 7 of 7 · Plenary review · Art · Year 4
4 minutesQuick-check answers before handing in
Check your main answers before your worksheets are collected.
| Question | Correct answer |
|---|---|
| How many red, white and green squares are in the dragon? | Red 47, white 61, green 12. Total 120 = 12 × 10. |
| Which of Gruff’s bugs could adding up not find, and why? | Row 3: 8 + 1 + 1 + 2 still makes 12, but the nose should be 2R, not 2G. |
| What loop makes the row RRWW RRWW RRWW? | repeat 3 times [2R 2W], and 3 × 4 = 12. |