Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { useEffect, useRef } from "react"import { createDitheredObject, type DitheredObjectInstance } from "@/components/canvasui/DitheredObjectVanilla"import { photoImage } from "@/preview/images"export default function DitheredObjectDemo() { const canvasRef = useRef<HTMLCanvasElement>(null) const instanceRef = useRef<DitheredObjectInstance | null>(null) useEffect(() => { const canvas = canvasRef.current if (!canvas) return instanceRef.current = createDitheredObject( { canvas }, { src: photoImage("running shoes", 800, 600), method: "bayer", gridSize: 4, scale: 3, }, ) return () => { instanceRef.current?.destroy() instanceRef.current = null } }, []) return ( <canvas ref={canvasRef} className="w-full max-w-md" style={{ height: 360 }} role="img" aria-label="Dithered running shoes" /> )}