Pixel Code

PICTURES AS NUMBERS

  1. A screen picture is a grid of pixels. The computer stores a number for every pixel.
  2. For a black-and-white picture, 1 can mean black and 0 white. Each 0 or 1 is called a bit.
  3. Run-length coding counts how many of the same colour come in a row: "3 white, 2 black". Big blocks of colour shrink a lot. Busy patterns can get longer!
  4. Colour screens mix red, green and blue light. Each is usually a number from 0 to 255. (255, 255, 255) is white and (0, 0, 0) is black.
  5. One wrong number makes a glitch. Real files use extra check numbers to catch mistakes.

CODE CRACKED!