Codele / How computers think
Pictures are numbers too
A picture on a screen is a grid of tiny squares, and each square is stored as a number. Watch a small picture appear one row at a time.
- A picture is a grid of tiny squares. Each square is a pixel.
- Here every pixel is one number: 1 is filled, 0 is empty. Real screens use bigger numbers to say which colour.
- The computer stores the picture as rows of numbers, and each number is stored as switches.
- A phone photo works the same way, with millions of pixels instead of 25.
Loading the playable lesson…