pointerpointer.com's use of voronoi, canvas, and javascript
Paul Irish1 HN recommenders · 2012–2025
40K views · explainer · evergreen · Uploaded 2012-06-11
Paul Irish explains how pointerpointer.com works. It uses a hidden canvas of colored Voronoi regions to look up which photo matches the cursor position.
HN links it as the author's own breakdown of Pointer Pointer's inner workings.
1:25:348 Bit & '8 Bitish' Graphics-Outside the Box
GDC Festival of Gaming
26:53What the heck is the event loop anyway? | Philip Roberts | JSConf EU
JSConf
24:26The Beauty of Bézier Curves
Freya Holmér
36:45Rich Harris - Rethinking reactivity
You Gotta Love Frontend
1:13:50The Continuity of Splines
Freya Holmér
3:36elevated by Rgba & TBC | 4k intro (FullHD 1080p demoscene demo)
Demoscene High-Quality Videos (Annikras)
24:46Painting a Character with Maths
Inigo Quilez
1:42:09Crockford on JavaScript - Volume 1: The Early Years
YUI Library
3 comments from Hacker News
I made a quick video explaining how the webapp works: [VIDEO] Essentially, using the gridPositions.json to populate a Voronoi Grid (toggle display of the <canvas> in your browser). Then your cursor position is used against the grid to find which shape encloses it which maps back to the source JPEG which is then displayed.
Here's a picture of all the different regions: [LINK] For those curious if how it works, Paul Irish did a breakdown of it quite a while ago: [VIDEO] TL:DW - Vornoi Diagrams[1] and manual tagging, no machine learning needed. [1] [LINK]
Paul Irish explained the basics of how it works here: [VIDEO] I wonder if you could create something similar nowadays using generative AI but with the finger in a very specific location without pregenerating thousands of images.