fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphDamru

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

Install

GraphDamru is a Svelte 5 animated ASCII damru component in @fractaldesign/machines-ui. It works in SvelteKit and in any Svelte 5 app.

pnpm add @fractaldesign/machines-ui

Import

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

Usage

Example
<GraphDamru title="BEAT" />

Props

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