← Back to course
AI Explorers 3-5 / Week 03 / Wednesday
3/6
Week 03 Β· Pictures as Numbers

Wednesday

Explorer Lab: Paint by numbers
// Pixels and color values
⏱ about 15 min

Wednesday: Explorer Lab: Paint by Numbers

Rocket hands Raven a grid full of 0s and 1s. "This photo came as numbers," Rocket says.

"It does not look like anything yet," Raven says. "What do you notice about where the 1s are?"

Nova hovers over the paper. "Use a color key," she hints. "Turn each number into a color."

Raven grabs her crayons.

Your mission

You will turn a number grid into a picture, just like a screen does.

Our grid uses a simple key instead of three RGB numbers.

Each square on your paper is one pixel.

  • Graph paper, or a grid you draw: 6 squares across and 6 squares down
  • A gray crayon or a pencil for shading
  • A pencil
Safety first
Use only paper, pencils and crayons.
Carry pencils with the point down.
Work at a table with good light.

Color key: 0 means leave the square white. 1 means color it gray.

RowABCDEF
1001100
2011110
3111111
4111111
5011110
6001100
  1. Draw a grid with 6 rows and 6 columns.
  2. Label the columns A to F and the rows 1 to 6.
  3. Read row 1 from left to right.
  4. Color each square to match its number.
  5. Do the same for rows 2 to 6.
  6. Step back and look at your picture.
MAKE A PREDICTION
  • Read the question.
  • Tap your answer.
Before you color, predict. What shape will the gray squares make?

Count your pixels

Count the squares of each color. Fill in a table like this one on your paper.

ColorNumber in the keyHow many squares
white0
gray1
How many gray squares are in the grid?
How many white squares are in the grid?
How many squares are in the whole grid?
WHICH LABEL?
  • Read the question.
  • Tap your answer.
Your picture shows a round gray lump. Which photo label fits best?
What we learnedTrue or false?
Each square in the grid is like one pixel.?
The numbers told you which color to use.?
There are more white squares than gray squares.?
WHY THIS EXERCISEThere are 24 gray squares and only 12 white ones.

You turned numbers into a picture, like a real screen! Tomorrow we use pixel data to sort photos.

← Tuesday