The Click How it works
Drawn live
index.html · the whole film
The paint: 32 characters
const GLYPHS="#@Oo+=-:;*/|{}()<>%&$.~xvw^',_!?";The sun: a disc and a warm glow
c=mix(c,sun,disc)+vec3(1.,.45,.18)*exp(-r*6.)…
Lighting cue: the sun swells
let SUNK=.6;
G.uNear.value=SUNK*ss(34.9,37.2,t)*(1-ss(38.05,38.45,t));The words
[35.8,36.917,"Then we make it."],[37.0,37.917,"Frame it."],
The music: a time and a note
[[5.0,69],[5.6,66],[6.2,64],[6.8,62]].forEach(([x,m])=>pluck(A(x),m,.09,.4));
index.html · your turn
1. The sun
let SUNK=.6; G.uNear.value=SUNK*ss(34.9,37.2,t);
2. The sunset
uSkyA=vec3(1.,.6,.3); uSkyB=vec3(.95,.3,.45);
This page loaded the film's real code. You are changing its numbers, and your device redraws the shot. Nothing is re-rendered or uploaded.
As a video file
134 MB
As code
230 KB
The Click
A film drawn in code
This explainer is drawn live too. You just watched a web page.
The Click
How it works
26 seconds, drawn live by your device. Sound on. Then you change the film yourself.