Computer Science • Data Representation & Compression

Pixel Painter

A digital transmission needs to be reconstructed! Compress each row of the target graphic into Run-Length Encoding (RLE) counts and color codes (e.g., 3W 15B) to paint the image line-by-line before the timer runs out.

Learning objectiveData compression · RLE algorithm

Understand and execute Lossless Data Compression using Run-Length Encoding (RLE) on binary and multi-color raster graphics.

By the end of a round you should be able to: identify consecutive runs of identical pixels; convert pixel runs into count-and-code pairs; recognize how RLE significantly reduces file sizes for simple images; and calculate row-by-row compressed representations accurately under time pressure.

  • Look at the highlighted row on the target image (left grid).
  • Count consecutive runs of matching colors from left to right across the row.
  • Enter the run length (1 or 2 digits) followed by the color letter (W, B, R, G). The color letter terminates the run count (e.g., enter 3 then W, then 15 then B for 3W 15B).
  • Once all pixels for a row are encoded, the row automatically paints to your canvas!
  • Mistakes trigger a time penalty (-5s) — check your counts carefully.
  • Finish as many sprites as you can before the 60-second timer expires!

Global Top Scores (8x8 Monochrome)

#InitialsScoreDate
Loading scores...

Pixel Painter — Key Terms

Key concepts and translations across English, Te Reo Māori, Simplified Chinese (中文), and Korean (한국어).

EnglishTe reo Māori中文(简体)한국어What it means on this page

On the te reo Māori column. Terms marked as gaps have no attested equivalent in the sources checked — Paekupu (Hangarau Matihiko), Te Aka and the CS Unplugged kuputaka. Following the practice used elsewhere in this project, no coinage is printed as though it were established; where a class needs one, commission it from Te Taura Whiri i te Reo Māori and credit the translator. Te reo Māori is not italicised and takes no plural "s".