Thinking UI

Thermal to ColorPRO

An infrared heat map of the image that cools, region by region, into its true colours.

Code

3 files · 234 lines of TypeScriptPRO

Thermal to Color is part of Pro

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

Motion notes

  • Heat is the image's luminance with a little warmth from its reds, diffused like a low-resolution sensor and mapped through a muted ironbow ramp, desaturated slightly so it reads as a camera feed, not a rainbow. Sensor grain and faint column noise sell the instrument.
  • A slow noise field decides where it cools, biased by the heat itself: cold, dark regions convert first and the hottest highlights last. The front sweeps a little past both ends, so the first and last steps are clean.
  • Ahead of the front the reading drops toward violet, as if that region is cooling. On it, heat haze refracts the image and a warm shimmer flickers along the edge. Just behind it, the true colour is still a touch soft and lifted as it settles.
  • The pill counts the temperature down from `from` to `to`. Progress is eased on the GPU side and drawing stops when the heat is gone. With reduced motion the haze and grain hold still and cooling follows progress directly.

Usage

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

Props

PropTypeDefaultDescription
progressnumber—0–100. At 100 the heat has cooled into the true colours.
srcstring—Final image URL. Same-origin or CORS-enabled.
altstring—Alt text.
fromnumber64Temperature shown at the start of a run, in °C.
tonumber21Temperature shown when the image is ready, in °C.
classNamestring—Size it here; the default is w-64 at 3:4.