Dither Crawl Lab
A Game Boy–style shadow effect for interface controls. Each shadow is made of dots. The middle of the shadow stays still while the dots around its edge keep changing. That movement is the crawl. The panel controls how it looks.
- Real controls underneath
- A drawing on top
- Why only the edge moves
Real controls underneath
The text field, tabs, switch and button are normal web controls, made invisible. They still respond to clicks, typing and the keyboard, and screen readers can use them. Turn on "Show the hidden HTML" to see them.
A drawing on top
A canvas sits over the controls and redraws them every frame as large pixels in three colors. It shows the current state of each control: the text, the cursor, whether the switch is on, and hover and focus.
Why only the edge moves
Each shadow is dark in the middle and gets lighter toward the edge. Several times a second, the page decides again whether each pixel is a dot. Pixels in the dark middle are always dots, so the middle stays still. Pixels in the lighter edge are dots only some of the time, so the edge keeps changing.