ns-ui / loud

ASCII Torus Donut

The donut.c homage done properly — a rotating 3D torus with real per-character depth buffering and Lambertian shading, spinning on two axes, drag-rotated with inertia, framed by a box-drawing HUD printing a live rotation readout.

Use when the donut.c homage specifically, a rotating torus with real per-character depth buffering and Lambertian shading plus drag-rotate inertia and a live rotation readout; pick ascii-globe-spin instead when the sphere has to read as a planet with geography and a lat/lon readout, or hero-ascii-wordmark when the ASCII should spell something rather than render a solid.

Install

npx shadcn add https://design.helpmarq.com/r/ascii-torus-donut.json
  • ascii
  • 3d
  • canvas
  • cursor
  • torus
  • physics
ns://uins-ui / ascii-torus-donut
drag to rotate — real depth buffer, Lambertian shadingzero deps / inline trig

Props

PropTypeDefaultDescription
cellSize?numbergrid cell size in px
className?string