Taught my CS how to program a mandelbrot set generator from scratch today.
Still don't have the colors doing exactly the right thing. This is in python, but we'll sort it out in the next class.
The most annoying thing is making the magnitudes of the terms in the series into a number between 0 and 256 without knowing exactly how big they will get.
But the math doesn't come out the same, and the difference shows up in the design. Wild.
I guess I don't actually know how either Python or JavaScript do floating point. I think the Python version is more accurate. The JavaScript might be 100x faster, though.