← Back to course
Science Launch G4 / Week 08 / Thursday
4/6
Week 08 Β· Secret Codes

Thursday

Pictures made of numbers
// Patterns that carry information
⏱ about 15 min

Thursday: Pictures made of numbers

Rocket's cousin lives far away and wants to see his new rocket ship drawing. But Rocket can only send numbers.

"How do I send a picture with numbers?" he groans.

Raven draws a grid of squares. She shades some black and leaves some white. "What do you notice about each square?"

"It is either black or white," Rocket says. "Only two choices."

Nova blinks once, then twice. "Here is my hint," she says. "Two choices. Two numbers."

A grid of 1s and 0s

You can send a black and white picture as a grid of numbers.

Each tiny square in the grid is called a pixel. Use 1 for a black pixel and 0 for a white pixel.

Read the grid row by row, from left to right. The person who gets the numbers shades every 1.

Here is a picture sent as numbers. Shade the 1s in your head, or on graph paper.

RowCol 1Col 2Col 3Col 4Col 5
111111
200100
300100
400100
500100
DECODE THE PICTURE
  • Read the question.
  • Tap your answer.
Shade every 1. Which letter appears?

Here is a second picture. This one is a face.

RowCol 1Col 2Col 3Col 4Col 5
101010
201010
300000
410001
501110
How many black pixels are in row 5 of the face?
Is the face smiling or frowning?
Make your own 5 by 5 picture. Then write it as rows of 1s and 0s.

More pixels, more detail

A 5 by 5 grid has 25 pixels. That is enough for a simple letter or face.

A bigger grid has more pixels, so it can show more detail.

Every pixel still needs a number, so bigger pictures need more numbers.

PIXEL THINKING
  • Read the question.
  • Tap your answer.
In our code, what does a 0 stand for?
How many pixels are in a 5 by 5 grid?
In the face picture, which rows make the eyes?
One tiny square in a picture grid is a ____.
How many black pixels are in row 1 of the T picture?
StatementTrue or false?
You read the grid row by row, left to right.?
A 1 stands for a white pixel.?
A picture can be sent as numbers.?
WHY THIS EXERCISEIn our code, 1 is black and 0 is white, read row by row.
Write row 1 of a 5 by 5 picture where only the middle pixel is black. Type the five numbers.
WHY THIS EXERCISETwo whites, one black, then two whites makes 0 0 1 0 0.

You sent pictures with numbers today! Tomorrow we see how phones and computers use the same trick.

← Wednesday