35mm projector gate weave, splice and changeover cue

I wanted to see if one ElementGL WebGL 2 canvas could project a 35mm cinema gate over a live screenplay card while keeping every field and button inside it responsive. Edit the scene heading or dialogue, tap Mark slate, Trigger splice or Switch reel inside the gate, or change cadence and Kodak halation below.

Reel 01 Take 01 5219 500T F0001 · 00:00:01
REEL CYCLE CUE IN 16.0s

Starting projector gate…

Show the code drawable screenplay card, 24 fps weave maths, GLSL halation and cue shader, geometry sync and fallbacks
  1. Live screenplay and clapperboard card inside one canvas. #reel-card holds editable text fields, action buttons and a live frame counter inside #gate-canvas.
  2. 24 fps stepped vs 60 fps gate weave maths. Quantises projector time to floor(t * 24) / 24 in telecine mode, adds splice jump impulses and mirrors the shader's sprocket pivot.
  3. 35mm projector fragment shader. Draws the stationary rounded gate mask and sprocket strip, 16-tap red-orange halation around bright DOM edges, grain, scratches, splice tape and the top-right changeover cue.
  4. Hit-box sync with geometryUnit(). Applies the matching weave matrix with updateElementGeometry() and toggles dataset.hitTick when the quantised displacement changes.
  5. Five-argument 2D and plain-HTML fallbacks. Transforms five-argument drawElementImage() behind a 2D gate mask, or moves #reel-card to plain HTML if the context is lost.

How it works

Instead of baking a static image of a cinema card, #reel-card stays live DOM inside a single <canvas content="drawable" layoutsubtree> driven by ElementGL from /lib/element-gl.js.

Live checks

Each check builds an isolated fixture on testStage() and retires its canvas when finished. The visible projector above isn't touched.

ResultExperimentDetail

Findings

Measured in headless Chrome 160 Canary on 2026-11-27 (412 px at 2.625 DPR, SwiftShader WebGL). Headless Chromium 157 and Chrome 159 on Android are not verified yet. Tap "Run these 6 checks" above to measure this browser.