Tutorpip← About this lessonOpen the sheet →Download PDF
Ages 8+ · Coding · How computers work
Pixels and pictures
.##.########.##.
Each # is a colored square, and each . is a white one.
The big ideaA picture on a screen is a grid of tiny squares called pixels.

How it works

A picture on a screen is a grid of tiny squares of color. Each square is a pixel, and each pixel has just one color.

Together the pixels make a picture, like the tiles in a mosaic. From far away, the squares blend into a smooth picture.

More pixels mean more tiny squares, so the picture shows more detail. A photo has millions of pixels.

A computer remembers each pixel as numbers made of ones and zeros, so a picture is a long list of numbers.

050100150200250300164 by 4648 by 825616 by 16squares in the grid
More squares, more detail.

Example 1: Counting a grid

  1. A 4 by 4 grid has 4 rows of 4 squares.
  2. 4 × 4 = 16.
  3. Sixteen squares make a blocky picture.

Example 2: A bigger grid

  1. An 8 by 8 grid has 8 rows of 8 squares.
  2. 8 × 8 = 64.
  3. Sixty-four squares make a clearer picture.

Example 3: Smoother still

  1. A 16 by 16 grid has 16 rows of 16 squares.
  2. 16 × 16 = 256.
  3. Two hundred fifty-six squares make the curves look smoother.

Example 4: How many more

  1. Teo's 4 by 4 grid has 16 squares, and his 8 by 8 grid has 64.
  2. 64 - 16 = 48.
  3. The 8 by 8 grid has 48 more squares to show detail.

Words to know

pixel
One tiny square of color on a screen.
grid
Rows and columns of squares.
detail
The small parts of a picture you can see.
zoom
To look closer at a picture.

Watch out

Try it

  1. What is a pixel?
  2. How many squares are in a 4 by 4 grid?
  3. Which looks smoother: an 8 by 8 grid or a 16 by 16 grid?
  4. Is a pencil drawing on paper made of pixels?
  5. How does a computer remember a pixel?
Answers: 1. One tiny square of color · 2. 16 · 3. The 16 by 16 grid · 4. No · 5. As numbers
Try at homeWith a grown-up, draw a grid on paper, or use squared paper. Colour in squares to make a tiny picture, like a heart or a smiley face. Make a small grid and a big grid. Which picture looks smoother?
For grown-upsDo the Mission: draw a grid on paper, or use squared paper, and color in squares to make a tiny picture like a heart or a smiley face. Make a small grid and a big grid, and ask which picture looks smoother.
Open these notes on screenScan the code, or go to tutorpip.com.