animated

Japa

A mala (prayer-bead ring) drawn in ASCII, with a marker travelling bead by bead around the circle.

Install

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

Preview

[ MALA ]

a breath for every bead

<GraphJapa title="MALA" />

Props

PropTypeDefaultDescription
title* string —Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.
animated boolean trueAnimate the marker around the mala. Default true. Reduced motion freezes a mid-mala frame.
cols number 60Width of the scene in characters. Default 60.
rows number 22Height of the scene in rows. Default 22.
beads number 108Total beads per mala. The mala is 108; the counter shows current/total. Default 108.
speedMs number 110Milliseconds per bead. Default 110.
label string 'a breath for every bead'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
Beadinterface

Theming

CSS custom properties this component reads.

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

Related

Built from

src/lib/components/animated/GraphJapa.svelte

machines-ui