fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphGanga

Three stepped river lines cascading down the frame while a lit diya rides the bottom flow; purely decorative.

Install

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

Usage

Example
<GraphGanga title="GANGES" />

Props

NameTypeDefault
title string Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.—
animated boolean Animate the flow and the floating diya. Default true. Reduced motion freezes a frame mid-flow.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 110.110
seedNum number Seed for the starting phase of the lamp's vertical bob, so two scenes bob out of step. The water is not seeded. Default 17.17
label string Short caption under the art; the art itself is decorative.'the descent'
class string ''