Thinking UI

TopographicPRO

The image surveyed as terrain: contour lines draw in, bands flood level by level, then detail resolves.

Code

3 files · 263 lines of TypeScriptPRO

Topographic is part of Pro

Get its source, the one-paste agent prompt and all 113 components, for a one-time $99.

Motion notes

  • Elevation is the image's heavily blurred luminance. Contours are its iso-lines, divided by the screen-space gradient so they stay a constant hairline wide at any slope, with every fourth line drawn heavier like an index contour on a survey map.
  • Lines are traced low to high. Each level grows out along its own length in noise order behind a bright pen tip, so the map reads as being drawn rather than faded in, and the surface crawls very slightly while the survey runs.
  • The bands between lines then flood level by level with flat terrace tints taken from the image's own colour, lit with a soft hillshade from the elevation gradient. Detail and colour resolve level by level after that as the lines lift away.
  • The pill shows the current elevation level. Progress is eased on the GPU side and drawing stops once the lines have gone. With reduced motion the contours do not crawl and each phase follows progress directly.

Usage

Example
<ImageTopo progress={job.progress} src={job.url} alt={prompt} />

Props

PropTypeDefaultDescription
progressnumber—0–100. At 100 the map has resolved into the full image.
srcstring—Final image URL. Same-origin or CORS-enabled.
altstring—Alt text.
levelsnumber14Number of elevation levels in the contour map.
classNamestring—Size it here; the default is w-64 at 3:4.