animated

Diya

A row of diyas that light one by one and then breathe, drawn as character-art candle flames over a dark gutter; purely decorative.

Install

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

Preview

[ DIWALI ]

row of light

<GraphDiya title="DIWALI" lamps={5} />

Props

PropTypeDefaultDescription
title* string —Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.
animated boolean trueAnimate the lighting and the breathing. Default true. Reduced motion freezes a fully lit row.
cols number 60Width of the scene in characters. Default 60.
rows number 14Height of the scene in rows. Default 14.
lamps number 5Number of diyas in the row. Default 5.
speedMs number 110Milliseconds per tick. Default 110.
seedNum number 13Seed for the per-lamp phase and gutter schedule. Default 13.
label string 'row of light'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

Theming

CSS custom properties this component reads.

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

Related

Built from

src/lib/components/animated/GraphDiya.svelte

machines-ui