Fire
A looping character-art fire animation with adjustable dimensions, cooling, and speed.
Install
pnpm add @fractaldesign/machines-ui import '@fractaldesign/machines-ui/style.css';
import { GraphFire } from '@fractaldesign/machines-ui';Preview
simulated fire
<GraphFire title="FURNACE" cols={48} rows={10} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | string | — | Caption drawn on the top edge as `[ TITLE ]`. Uppercase, 1–2 words. |
| animated | boolean | true | Animate the burn. Default true. Reduced motion freezes a mid-burn frame. |
| cols | number | 60 | Width of the fire in characters. Default 60. |
| rows | number | 14 | Height of the fire in rows. Default 14. |
| speedMs | number | 90 | Milliseconds per simulation step. Default 90. |
| cooling | number | 0.6 | Random decay strength; higher burns out sooner. Default 0.6. |
| seedNum | number | 3 | Seed for the reproducible burn. Default 3. |
| label | string | 'simulated fire' | 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
| Name | Kind | Description |
|---|---|---|
| Seg | interface |
Theming
CSS custom properties this component reads.
- --graph-accent
- --text-muted
- --text-primary
- --text-secondary
Related
Built from
src/lib/components/animated/GraphFire.svelte