animated

Mandala

A lotus mandala drawn in terminal glyphs, blooming outward ring by ring and then slowly rotating.

Install

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

Preview

[ YANTRA ]

the circle that holds

<GraphMandala title="YANTRA" folds={8} rings={5} />

Props

PropTypeDefaultDescription
title* string —Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.
animated boolean trueAnimate the bloom. Default true. Reduced motion freezes a fully bloomed frame.
cols number 48Width of the scene in characters; at least 38 so the outermost ring fits. Default 48.
rows number 24Height of the scene in rows; at least 20 so the circle fits the cell aspect. Default 24.
folds number 8Rotational folds (K). One cell of the canonical petal is rotated K times. Default 8.
rings number 5Number of concentric lotus-petal rings. Default 5.
speedMs number 130Milliseconds per tick. Default 130.
seedNum number 11Seed for the per-ring radius and phase perturbation. Default 11.
label string 'the circle that holds'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
Ringinterface

Theming

CSS custom properties this component reads.

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

Related

Built from

src/lib/components/animated/GraphMandala.svelte

machines-ui