Mandelbrot Set
Mandelbrot Set
I love the idea of being able to run anything in a browser by compiling the code to WASM. I created an interactive Mandelbrot set explorer for fun and to learn more about WASM.
The Mandelbrot set is a famous mathematical object defined by a simple formula (z = z^2 + c) and some checks on how big the number gets. When visually plotted it produces these intricate fractal patterns. In this simple example, a boundary is set. The colours indicate how quickly the number increased and if they escaped the boundary. The black indicates numbers that never increased enough to escape the boundary.
Calculating Mandelbrot sets involves a lot of heavy number-crunching. Traditional web technologies (HTML, CSS, JS) aren’t great at. However, the code is written in C and compiled into WASM, which opens up a lot of possibilities.