GraphAgni

Import

svelte
import { GraphAgni } from 'markgraphy';

Basic usage

svelte
<GraphAgni
  title="example"
  animated={true}
  showControls={true}
/>
[ example ]

Props

PropTypeDefaultDescription
title?stringCaption drawn on the top edge as [ TITLE ]. Uppercase, 1–2 words.
animated?booleantrueAnimate the burn. Default true. Reduced motion freezes a mid-burn frame.
showControls?booleantrueShow the playback controls. Default true.
cols?number56Width of the scene in characters. Default 56.
rows?number16Height of the scene in rows. Default 16.
speedMs?number90Milliseconds per simulation step. Default 90.
cooling?number0.6Random decay strength; higher burns out sooner. Default 0.6.
seedNum?number3Seed for the reproducible burn. Default 3.
label?stringShort caption under the art; the art itself is decorative.
class?string''

Exported types

  • GraphAgniProps

Reduced motion

Animation is disabled under prefers-reduced-motion.