fractalsvelte mascot fractalsvelte fractalsvelte

Svelte 5 component · machines-ui · Animated

GraphFire

A looping character-art fire animation with adjustable dimensions, cooling, and speed.

Install

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

Usage

Example
<GraphFire title="FURNACE" cols={48} rows={10} />

Props

NameTypeDefault
title string Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words.—
animated boolean Animate the burn. Default true. Reduced motion freezes a mid-burn frame.true
cols number Width of the fire in characters. Default 60.60
rows number Height of the fire in rows. Default 14.14
speedMs number Milliseconds per simulation step. Default 90.90
cooling number Random decay strength; higher burns out sooner. Default 0.6.0.6
seedNum number Seed for the reproducible burn. Default 3.3
label string Short caption under the art; the art itself is decorative.'simulated fire'
class string ''