Skip to content

mnerv/WebGL_Mandelbrot_set

Repository files navigation

Mandelbrot set

Mandelbrot set in WebGL!

Controls

w, a, s, d for moving around

q and e to rotate

z/shift to zoom in

x/control to zoom out

7 Reset position to 0,0

8 Reset rotation to 0

9 Reset scale to 1,1

0 Reset all

Math

Complex number

z = a + bi

c = x + yi

Power of 2

f(z) = z^2 + c

(a+bi)^2 = a^2 + 2abi - b^2

real = a^2 - b^2 + x

imaginary = 2abi + yi

Power of 3

Requirements

  • nodejs

How to run

Installs the packages

yarn

Runs the dev server

yarn dev