Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Plotting Mandelbrot Set into PNG with WebAssembly

Theoretically unlimited zooming into the Mandelbrot Set.

Using as-big for arbitrary-precision decimal arithmetic.

⚠️ Compute-intensive!

Build

npm i
npm run asbuild:optimized

Usage

node index.js [image-width] [zoom] [x-offset] [y-offset] [max-iterations]
  • image-width: with of the resulting image in pixels (default: 100)
  • zoom: zoom value (default: 1)
  • x-offset: offset of the X axis (default: -2.15)
  • y-offset: offset of the Y axis (default: -1.25)
  • max-iterations: Maximal iterations (default: 1000)

Example:

node index.js 100 333 -0.665 -0.455 1000
node index.js 100 10000000000000000000000 -0.65708809159912072260101 -0.45040104259032688650481 5000