GraphHash

64-bit FNV-1a-ish digest. Pure function of the input string — same input always yields the same 64-bit digest, no PRNG state. This is the “any string → deterministic fingerprint” property.

Import

svelte
import { GraphHash } from 'markgraphy';

Basic usage

svelte
<GraphHash
  title="example"
  input={'markgraphy'}
  cols={16}
/>
[ example ]

any string → a glyph fingerprint

Props

PropTypeDefaultDescription
titlestringCaption on the frame’s top edge as [ TITLE ]. Uppercase, 1–2 words.
input?string'markgraphy'Any string — its digest is the seed. Default ‘markgraphy’.
cols?number16Grid width in cells. Default 16.
rows?number6Grid height in rows. Default 6.
speedMs?number60Milliseconds per tick of the scan-line sweep. Default 60.
animated?booleantrueAnimate the scan line. Default true. Reduced motion freezes mid-sweep.
label?string'any string → a glyph fingerprint'Short caption under the art.
class?string''

Exported types

  • GraphHashProps

Reduced motion

Animation is disabled under prefers-reduced-motion.