Gooey ink typography over live headings

I wanted to test whether a single ElementGL fragment shader can sample live DOM glyph alpha in a radial Gaussian kernel and fuse spring-driven ink droplets with an editable heading at a sharp threshold, without splitting text into a second hidden copy. Move across the words, click a letter to edit the heading, or switch ink below.

OBSIDIAN · 22px
INK LAB · METABALL TYPE OBSIDIAN

Liquid Ink

Drag or glide over the letters to stretch ink filaments between strokes. Click the headline to edit the words directly inside the canvas.

Starting ElementGL ink shader...

Show the code transparent drawable card, radial Gaussian metaball shader and hit sync
  1. Editable heading inside a transparent drawable card. Setting background: transparent on #type-card turns uTex.a into an exact mask of glyphs and button strokes.
  2. Single-pass radial metaball shader. Evaluates a 17-tap two-ring Gaussian kernel on uTex.a near the cursor droplet and its trailing drops, then cuts at an anti-aliased threshold.
  3. Pointer spring physics and hit-box calibration. Syncs updateElementGeometry() scaled by geometryUnit() so editing #ink-heading and tapping ink buttons work natively.

How it works

This experiment rebuilds Dwayne's Gooey Title (Memorables) with HTML-in-canvas. Instead of rendering text twice in separate DOM layers to survive a CSS blur and contrast filter, the heading and its buttons stay in one <article drawable> element with a transparent background.

In WebGL 2, ElementGL uploads the card with gl.texElementSubImage2D() whenever typing, button presses or resizing triggers a paint event. Near the spring-tracked pointer droplet and four trailing micro-drops, the fragment shader evaluates a 17-tap radial Gaussian blur over uTex.a, adds the pointer droplet field and passes the combined density through an anti-aliased smoothstep cut over warm paper. Away from the cursor, letters render unblurred straight from uTex, while syncCardGeometry() keeps the editable heading and ink buttons aligned for mouse, touch and keyboard focus.

Live checks

These checks wait for a tap so the page keeps one WebGL context until requested. Each check runs inside its own isolated fixture on the test stage and retires its canvas afterwards.

Findings