About Pixel Code
Pixel Code shows how a computer stores a picture. Every picture on a screen is a grid of pixels, and every pixel is a number. Start by painting 8 x 8 pictures from rows of 0s and 1s, where 1 is black, and watch a heart, a smiley face and a house appear from 64 bits.
Run-length coding stores a row as counts, like 3 white, 2 black, 3 white. Paint pictures from their run-length codes, then write the code for a row yourself. In Colour numbers you mix red, green and blue light, each from 0 to 255, to match yellow, purple, teal and orange, just as a screen does.
Shrink it asks which code is shorter for a picture, and shows that run-length coding is great for big blocks of colour but makes a busy checkerboard longer. Fix the glitch finds the single wrong bit that spoils a picture. Every solved picture joins the gallery, and six stars open free draw, where the codes appear as you paint.
Best for ages 9+
Free to play. No ads, no sign-up, nothing to download. About this site · Privacy
Back to the game