Skip to content

Realistic watercolor drawings

TypeScript paintwatercolor
425 B
Raw Blame
import { signal } from '@preact/signals';

/** Bumped on every window resize so layout-dependent effects (ghosts, frames, thumbnails) re-run. */
export const resizeTick = signal(0);
export const bumpResize = () => { resizeTick.value++; };

/** Bumped whenever the sheet is zoomed or panned, so overlays placed on the paper follow it. */
export const viewTick = signal(0);
export const bumpView = () => { viewTick.value++; };