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.
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.
Color key: 0 means leave the square white. 1 means color it gray.
| Row | A | B | C | D | E | F |
|---|---|---|---|---|---|---|
| 1 | 0 | 0 | 1 | 1 | 0 | 0 |
| 2 | 0 | 1 | 1 | 1 | 1 | 0 |
| 3 | 1 | 1 | 1 | 1 | 1 | 1 |
| 4 | 1 | 1 | 1 | 1 | 1 | 1 |
| 5 | 0 | 1 | 1 | 1 | 1 | 0 |
| 6 | 0 | 0 | 1 | 1 | 0 | 0 |
Count the squares of each color. Fill in a table like this one on your paper.
| Color | Number in the key | How many squares |
|---|---|---|
| white | 0 | |
| gray | 1 |
| What we learned | True 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. | ? |
You turned numbers into a picture, like a real screen! Tomorrow we use pixel data to sort photos.