Thinking UI

Dither ResolvePRO

A 1-bit Bayer dither that refines pass by pass into the full-colour image.

Code

3 files · 216 lines of TypeScriptPRO

Dither Resolve is part of Pro

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

Motion notes

  • Starts as a coarse 1-bit ordered dither in ink and paper, then each pass shrinks the cells, grows the Bayer matrix from 2×2 to 8×8 and adds tone levels, before colour arrives quantized per channel.
  • Passes are discrete on purpose: each one holds, then wipes in from the top a row of its own cells at a time behind a faint scan line, so you can see the tool working.
  • The status pill names the current pass, from 1-bit 2×2 to 24-bit, and the last slot dissolves the final dither into the source image.
  • Nothing animates between passes, so the shader only draws while progress is easing. With reduced motion each pass simply appears.

Usage

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

Props

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