animated

Surya

A sun wheel with breathing rays that rises from the horizon to its apex and sets again, forever; purely decorative.

Install

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

Preview

[ DAWN ]

the mover of days

<GraphSurya title="DAWN" cols={52} rows={14} />

Props

PropTypeDefaultDescription
title* string —Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.
animated boolean trueAnimate the day cycle. Default true. Reduced motion freezes a mid-morning frame.
cols number 60Width of the scene in characters. Default 60.
rows number 18Height of the scene in rows. Default 18.
speedMs number 120Milliseconds per tick. Default 120.
rays number 12Number of spokes on the wheel. Default 12.
seedNum number 5Seed for the per-spoke length jitter. Default 5.
label string 'the mover of days'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/GraphSurya.svelte

machines-ui