Slit-scan Workbench canvas 2D · webcam, video file or built-in

A picture built from one thin line of each video frame, so one axis of it is time. Things that move stretch, squash and smear; things that hold still become stripes.

Starting…

What to try

Scan is a finish-line camera: the picture only ever sees one line of the scene, and scrolls. Walk past the slit and you are recorded once, as wide as you were slow. Stand still on it and you become a stripe.

Time shift shows the whole frame, but each column comes from a different moment. Turn your head, wave, or spin something: straight things bend, as they do under a rolling shutter.

Map is the same with the delay following a gradient, so a radial one makes movement ripple outwards from the centre.

Keys: Space freeze, S save PNG, M mirror, O slit orientation, 1 2 3 mode, F full screen.

Camera and privacy

The page opens on a built-in animation and asks for nothing. The camera is requested only when you press Start camera, as video only: the microphone is never asked for, and this site's headers deny it.

Frames are read into memory in this tab and drawn to the canvas. Nothing is uploaded or stored: the site's content security policy does not let the page connect to any other server. Stop camera, or leaving the page, releases the camera.

A video file you choose is played from your disk in the same way and goes nowhere.

How it works

  1. Each new video frame is drawn to a working canvas, scaled down to the resolution cap, and copied into a ring buffer of the last N frames.
  2. Scan copies a strip w pixels wide from the slit to the trailing edge of the output, after scrolling the output along by the scroll speed.
  3. Time shift and Map look up, for every output pixel, how many frames back to read, and take that pixel from that frame.
g       = x / (W − 1)
delay   = round(|g − p| / max(p, 1 − p) · (N − 1))
out(x, y) = frame[now − delay](x, y)

Here p is the slit position, the line that shows the present, and g runs across the frame for a vertical slit, down it for a horizontal one, or along the chosen gradient. A slit wider than one pixel steps the delay in bands. The buffer is capped by memory: frames are scaled down until N of them fit.