fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphSurya

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

Install

GraphSurya is a Svelte 5 animated ASCII surya 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 { GraphSurya } from '@fractaldesign/machines-ui';

Usage

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

Props

NameTypeDefault
title string Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.—
animated boolean Animate the day cycle. Default true. Reduced motion freezes a mid-morning frame.true
cols number Width of the scene in characters. Default 60.60
rows number Height of the scene in rows. Default 18.18
speedMs number Milliseconds per tick. Default 120.120
rays number Number of spokes on the wheel. Default 12.12
seedNum number Seed for the per-spoke length jitter. Default 5.5
label string Short caption under the art; the art itself is decorative.'the mover of days'
class string ''