Golang, Performance, Programming.
to increase the complexity of the fractal. // In the justforfunc.com video this was set to 4. const complexity = 1024 xi := norm(i, width, -1.0, 2) yi := norm(j, height, -1, 1) const maxI = 1000 x, y := 0., 0. for i := 0; (x*x+y*y < complexity) && i < maxI; i++ { x, y = x*x-y*y+xi, 2*x*y+yi }