Computer science unplugged · kindergarten to grade 5
Draw a black and white picture with # for black and . for white. The page shows the picture and writes its code, a list of numbers for each row, then tells you how many numbers replaced how many squares.
One row per line, # for black and . for white. The worked example is an 8 by 8 heart. Saved on this device only.
Loading Pixel Picture Code Maker. If nothing appears, turn on JavaScript.
Academics · ElementaryOpen to everyone · no sign-in
Pictures are made of tiny squares called pixels. Run-length coding stores long runs of the same color as one number, so a picture with big blocks needs far fewer numbers than squares.
Swap codes with a friend and each redraw the other's picture on squared paper. Then draw one that is hard to compress, with a checkerboard, and compare.
The worked examples are made up for illustration. What you type is saved only in this browser on this device and is never sent to Caveat. Younger children do best with a grown-up beside them. Support: team@caveatacademic.com.