Eye Contact

Move your cursor (or drag a finger) anywhere on the page and I'll look at it. It isn't a video playing: it's 53 still frames of me looking around in a circle, each one tagged with the direction I'm looking, and the page picks the one that points at you. Then it's dithered down to a few colors and shown on an old TV. One of the experiments in the Lab.

FUNKIE·VISION

How it works

1. Film a circle

I filmed a 4.8 second selfie video, 145 frames at 30 fps, rolling my eyes once around a circle: up, to one side, down, to the other side and back up. Nothing on this page plays it.

2. Ask a model where I'm looking

Each frame went through Google's MediaPipe Face Landmarker, once, ahead of time. Besides 478 points on the face, it scores 52 blendshapes, and eight of them are about the eyes: eyeLookUp, eyeLookDown, eyeLookIn and eyeLookOut for each eye, each from 0 to 1. "In" means toward the nose, so it points opposite ways for the two eyes, and since I'm facing you, my right is your left:

x = (outL + inR − inL − outR) / 2   // + is your right
y = (upL + upR − downL − downR) / 2    // + is up

Smoothed over three frames and stretched so the circle fills −1 to 1, that's a dot per frame on the map. The map is live: the bright dot is the frame on screen and the line points at you. You can drag on it too.

Move your cursor to pick a frame.

3. Keep one frame per 5 degrees

Most of the 145 frames are near-repeats (I held still at the top for 13 of them), so the build script walks around the circle in 5° steps and keeps the frame closest to each step: 53 frames. It also lines every frame up on the corners of my eyes, so my head doesn't wobble as the frames change.

4. Point the eyes at you

On every pointer move the page takes the angle from my eyes on screen to your pointer and shows the frame whose gaze angle is nearest. It only switches when another frame is more than 3° closer, so the eyes don't twitch on a boundary. It's a lookup, not a model: all the "detection" happened once, offline.

5. Dither it, ahead of time

The dithering happens in the build script too, so the page never downloads a photo, only dots. Each frame is shrunk to 192 lines and every pixel is snapped to one of four grays. Before snapping, an ordered dither nudges it up or down by a repeating Bayer pattern, so in-between shades turn into a checkerboard of the shades around them; Atkinson instead pushes each pixel's rounding error onto its neighbors, like the first Macintosh. Each style is its own 2-bit PNG sprite sheet of all 53 frames (about 200 KB), hosted on Cloudflare R2.

6. Color it, then put it on a TV

The page copies the frame into a small canvas and swaps the four grays for the palette's four colors, darkest to lightest. That canvas is uploaded as a texture to the CRT Playground's WebGL shader: one beam per line, an aperture grille, a curved tube and a little glow. The two buttons under the screen show it with and without the TV.

Add ?palette=amber or &dither=atkinson to the URL to start with other settings.