GraphMandel

Import

svelte
import { GraphMandel } from 'markgraphy';

Basic usage

svelte
<GraphMandel
  title="example"
  cols={66}
  rows={20}
/>
[ example ]
                                           .:@:                   
                                          .@@@@@.                 
                                    .   ...@@@@:..                
                                  ..@*.:@@@@@@@@@@@..-.:.         
                                  ..:@@@@@@@@@@@@@@@@@@:          
                    .           ..@@@@@@@@@@@@@@@@@@@@@+          
                     ............@@@@@@@@@@@@@@@@@@@@@@@@:        
                     .:@@@@@@+..=@@@@@@@@@@@@@@@@@@@@@@@+.        
                 ....:@@@@@@@@@:@@@@@@@@@@@@@@@@@@@@@@@@-         
          .     ..-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.          
          .     ..-@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@.          
                 ....:@@@@@@@@@:@@@@@@@@@@@@@@@@@@@@@@@@-         
                     .:@@@@@@+..=@@@@@@@@@@@@@@@@@@@@@@@+.        
                     ............@@@@@@@@@@@@@@@@@@@@@@@@:        
                    .           ..@@@@@@@@@@@@@@@@@@@@@+          
                                  ..:@@@@@@@@@@@@@@@@@@:          
                                  ..@*.:@@@@@@@@@@@..-.:.         
                                    .   ...@@@@:..                
                                          .@@@@@.                 
                                           .:@:                   

zoom 1.0x · iter 090

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge as [ TITLE ].
cols?number66Columns of the grid. Default 66.
rows?number20Rows of the grid. Default 20.
charset?string' .:-=+*#%@'Escape count -> glyph, low to high. Keep it ASCII for grid alignment.
speedMs?number140Milliseconds per zoom tick. Default 140.
zoomPerTick?number1.06Window shrink factor per tick. Default 1.06.
maxIter?number90Starting iteration budget; grows +2 per tick, capped at 300. Default 90.
animated?booleantrueStart playing on mount. Default true. Reduced motion starts paused.
showControls?booleantrueShow the playback controls. Default true.
corner?stringCharacter at each corner of the frame. Default ”+“.
class?string''

Exported types

  • GraphMandelProps

Reduced motion

Animation is disabled under prefers-reduced-motion.