Clicking a square on the grid turns the square "on" (yellow) or "off" (gray). The numbers on each square represent the distance from that square to the nearest "on" square. These transforms are used in digital image processing.
Wolfram Demonstrations Project
Published: March 7 2011