animated

Damru

A damru (hourglass drum) drawn in ASCII, pulsing in place through the eight beats of Adi tala.

Install

pnpm add @fractaldesign/machines-ui
import '@fractaldesign/machines-ui/style.css';
import { GraphDamru } from '@fractaldesign/machines-ui';

Preview

[ BEAT ]

the first sound

<GraphDamru title="BEAT" />

Props

PropTypeDefaultDescription
title* string —Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.
animated boolean trueAnimate the tala. Default true. Reduced motion freezes a clap beat.
cols number 60Width of the scene in characters. Default 60.
rows number 16Height of the scene in rows. Default 16.
speedMs number 220Milliseconds per beat. Default 220.
label string 'the first sound'Short caption under the art; the art itself is decorative.
class string ''

API

  • class forwarded to the outer element
  • motion runs live; set animated={false} to freeze
  • a11y honours prefers-reduced-motion

Types

NameKindDescription
Seginterface
Triangleinterface

Theming

CSS custom properties this component reads.

  • --graph-accent
  • --text-muted
  • --text-primary
  • --text-secondary

Related

Built from

src/lib/components/animated/GraphDamru.svelte

machines-ui