ASCII donut
FreeA torus drawn in characters, lit by a moving light.
When to use
- A hero mark that stays sharp at any size and does not need a video.
- An empty or loading state that can loop on its own.
- A decorative object when a WebGL scene would be too much for the page.
When not to use
- Anywhere the characters have to be read. The glyphs are shading, not copy.
- A product render that must match a specific model. This draws one lit torus.
Usage
- Copy the prompt and set the column count, row count, and spin speed.
- Ask for one client component that draws into a pre and pauses while it is off screen.
- Give the component a fixed box. The torus sizes to that box.
example.tsx
1import { AsciiDonut } from "@/effects/ascii-donut";2 3export function Preview() {4 return (5 <div className="h-64">6 <AsciiDonut />7 </div>8 );9}