Inspecting a pixel's RGB numbers
A tool that picks one pixel in an image and shows the red, green and blue numbers (0 to 255) stored for it, such as rgb(255, 0, 0) for pure red.
Understanding Inspecting a pixel's RGB numbers in ACARA Digital Technologies Years 7–8
What it does: When all three numbers are at their maximum of 255, the pixel is white. The red, green and blue numbers differ by only a few steps, so the two neighbouring pixels look nearly identical. An eyedropper picks a single pixel and reveals the RGB numbers stored for it. Each channel uses one byte (8 bits), so it can store 256 values from 0 to 255. The order is always red, green, blue, so the last number (255) is blue. Red is at its maximum of 255 while green and blue are 0, so the pixel viewer reports a pure red pixel.
Common mistakes: Line 3 should read the green number. An eyedropper only stores red, green and blue numbers for a pixel, so there is no yellow value. It should be print(pixel.green). Each RGB number must be from 0 to 255. Pure red is (255, 0, 0), so 256 is out of range. It should be rgb = (255, 0, 0).
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 153–172) and word search (Modules 153–188).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
eyedropperFill in the Blanks
Spot the Error
Student with a class code? Join your class →