800-379-3727
800-379-3727
Pixel art is a natural next step after a first graph paper programming lesson. Students see how a short list of precise instructions becomes a picture, and they find out fast what happens when an instruction is vague.
This is the second post in our unplugged coding series. If you're new to it, start with Teach Coding Without Computers.
Each pair needs a 100 Count Graphboard, two markers and an eraser. Label the columns A–J across the top and the rows 1–10 down the side. Programs always start at A1.
The commands are the same as before: U, D, L and R move one cell, and F fills the current cell without moving.
Write this program on the board: F R F R F L D F D F
Before anyone draws, ask students to predict the picture. Then run it together. It fills A1, B1 and C1, steps back left to B1, then moves down to fill B2 and B3. The result is a capital T.
The step back with L is the interesting part. Ask students why it's there and what would happen without it.
A filled-in grid describes a picture as data: which cells are on and which are off. The program describes the steps to draw it. Ask students to explain the difference in their own words. It's the same idea behind how computers store and display images.
Next in the series: debugging, where students find and fix a deliberately broken program.