Thinking UI

Brushstroke PaintPRO

Big directional strokes block in the masses, then smaller strokes add detail until the image is crisp.

Code

3 files · 297 lines of TypeScriptPRO

Brushstroke Paint is part of Pro

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

Motion notes

  • Four passes, the way a painter works a canvas: each is a jittered grid of strokes that take one colour from the image at a matching blur level.
  • Broad strokes lie along the image's contours (perpendicular to its luminance gradient), so even the first pass already reads as the composition.
  • Smaller strokes only land where the canvas still differs from the image, then a final pass resolves into the crisp picture. Strokes carry bristle streaks and a dry-brush tail.
  • Strokes move only when progress moves, so it costs nothing between updates.

Usage

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

Props

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