# How Computers Store Images > Seventh graders discover that every digital image is a grid of tiny colored squares — pixels — and each pixel’s color is stored as amounts of red, green, and… **Computer Science** | **Grade 7** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g7-cs-pixels.html* Seventh graders discover that every digital image is a grid of tiny colored squares — pixels — and each pixel’s color is stored as amounts of red, green, and blue (RGB). More pixels means more detail. They test the idea, then build a pixel picture. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Explain a **pixel**. - Describe color with **RGB**. - Connect **pixels to resolution**. - Make a pixel image. How does a computer store a picture as numbers? ## How Images Are Stored Project each item and have students answer about pixels and color. ## 50 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Zoom In What do you see if you zoom WAY into a photo? #### 👩‍🏫 Teacher Moves - Zoom into an image. - Ask what the squares are. - Set the goal. #### 🎒 Student Actions - Look. - Guess. - Get ready. ### Use — Pixels & RGB Students use the idea. #### 👩‍🏫 Teacher Moves - Send students to How Images Are Stored. - Note pixels & RGB. - Note pixels & resolution. #### 🎒 Student Actions - Answer. - Note it. - Note it. ### Modify — Change the Color Students modify. #### 👩‍🏫 Teacher Moves - Mix RGB values to make a color. - Change a few pixels. - See the picture change. #### 🎒 Student Actions - Mix. - Change. - See it. ### Create — Make a Pixel Image Students create. #### 👩‍🏫 Teacher Moves - Color a small pixel grid. - Choose RGB for each cell. - Name your picture. #### 🎒 Student Actions - Color. - Choose. - Name. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - Say what a pixel is. - Say what RGB stands for. - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Say. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students. Represent data using multiple encoding schemes. Collect data and create visualizations. Recommend hardware/software for displaying media. Represent data to solve problems. ## One lesson, every learner ### Multilingual Learners - Use a grid & crayons. - Frame: “pixel = tiny colored square.” - Mix RGB with light. ### Support & Access - Color a 4x4 grid. - Use 3 colors. - Label R, G, B. ### Stretch & Extend - Compute a file’s pixel count. - Compare low vs high resolution. - Encode a pixel in binary. ### What to gather - 📽️Screen / board - 🖼️Pixel grid paper - 💻How Images Are Stored - 🖍️RGB color chart - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **pixel**: one tiny colored square in an image - **RGB**: red, green, blue — how color is stored - **resolution**: how many pixels an image has - **grid**: the rows and columns of pixels - **color value**: the number for each color amount - **image file**: stored pixel data - **zoom**: enlarge to see individual pixels - **encode**: to store something as numbers ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Reflect: how computers store images. Have students design a small pixel picture on a grid. A printable pixel-image worksheet is in the Computer Science library. ## Check your understanding **1. What does “pixel” mean?** - how many pixels an image has - one tiny colored square in an image *(correct)* - to store something as numbers - red, green, blue — how color is stored “pixel” means: one tiny colored square in an image **2. Which word means: “red, green, blue — how color is stored”?** - grid - zoom - image file - RGB *(correct)* “RGB” means: red, green, blue — how color is stored **3. What does “resolution” mean?** - how many pixels an image has *(correct)* - to store something as numbers - stored pixel data - the rows and columns of pixels “resolution” means: how many pixels an image has **4. Which word means: “the rows and columns of pixels”?** - pixel - image file - zoom - grid *(correct)* “grid” means: the rows and columns of pixels **5. What does “color value” mean?** - enlarge to see individual pixels - stored pixel data - red, green, blue — how color is stored - the number for each color amount *(correct)* “color value” means: the number for each color amount **6. Which word means: “stored pixel data”?** - RGB - image file *(correct)* - resolution - grid “image file” means: stored pixel data ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g7-cs-pixels.html All lessons: https://lessonplans.k12academics.com/