Computer Science
Grade 3
20 min
Binary Images: Pixels and Patterns
Students will create simple black and white images by coloring in squares representing binary values.
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Define a pixel as a tiny square of light on a screen.
Explain that binary means using only two options, like 0 and 1, or on and off.
Represent the color black with the number 1 and the color white with the number 0.
Create a simple black and white picture on a grid using only 0s and 1s.
Decode a grid of 0s and 1s to reveal a hidden picture.
Describe how a computer uses a pattern of 0s and 1s to show a simple image.
Have you ever wondered how a computer draws a smiley face? 🤔 It's like a secret code made of only two numbers!
Today, we're going to become code detectives! We'll learn how computers use tiny dots called pixels and a special code called binary (just 0s and 1s) to create all the pictures we see on screens. It's the first st...
2
Key Concepts & Vocabulary
TermDefinitionExample
PixelA single tiny dot or square of light on a screen. Millions of pixels work together to make a full picture.Look very close at your computer screen. You might see the tiny squares that make up a letter or picture. Each one is a pixel!
BinaryA way of representing information using only two options. For us, we will use the numbers 0 and 1.A light switch is binary. It can only be 'on' or 'off'.
Binary ImageA picture made up of only two colors, like black and white. Each pixel is either one color or the other.A simple smiley face drawn with a black marker on white paper is like a binary image.
GridA pattern of straight lines that cross each other to form a series of squares. We use grids to organize our pixels.A checkerboard is a grid. We can put a...
3
Core Syntax & Patterns
The Pixel Color Rule
0 = White (Off), 1 = Black (On)
When we make a binary image, we use this rule for every square in our grid. If the square has a 0, we leave it white. If it has a 1, we color it black.
The Grid Reading Rule
Read the grid from left to right, top to bottom.
Just like reading a book, we start at the top-left square, go across the row, and then move down to the next row to understand the picture's code.
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
In the Smiley Face code, Row 3 is `10101`. If you change it to `10001` to make the smiley wink, what did you change?
A.You changed the middle '1' (the nose) to a '0' (white).
B.You changed the first '1' (the left eye) to a '0' (white).
C.You changed a '0' to a '1'.
D.You added an extra number to the row.
Challenging
You want to create a binary image of a 4x4 square that is completely empty (all white). What would the code for the entire grid be?
A.Four rows of `1111`
B.Four rows of `1010`
C.Four rows of `0110`
D.Four rows of `0000`
Challenging
Look at the code for the heart. Row 3 is `11111`. If you wanted to make a hole in the middle of the heart, how would you change the code for Row 3?
A.Change it to `00000`
B.Change it to `10101`
C.Change it to `11011`
D.Keep it the same
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free