Skip to content
A Webassembly & WebGL Mandelbrot Set generator
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
res
.gitignore
README.md
index.html
main.js
main_wasm.js
mand.wasm
mand.wat
node_server.js
package-lock.json
package.json
wasm.html

README.md

fractaljs

This project contains 2 implementations of the Mandelbrot Set:

  • Using WebGL shaders (index.html)
  • Using Webassembly to generate the image and WebGL to render it (wasm.html)

The WebGL implementation is fastest (depending on your hardware); although the level of zoom that can be reached is not very "deep" due to WebGL shaders only supporting single precision floating point numbers.

The purpose of the Webassembly implementation, despite its slower speed, is to experiment with double precision zoom levels as they are supported in WASM. As a result, it can zoom in around twice as far. To mitigate the slower rendering speed it features dynamic resolution: while panning/zooming the image is rendered at a lower resolution to increase the frame rate temporarily.

ATOW: I believe this is the only fractal explorer that supports double precision zooming, I was unable to find any other examples after much googling. If you find one I would be interested in hearing about it.

You can’t perform that action at this time.