Mandelbrot fractal for fun.
It first attempt to create this fractal.
Amazing that usage builtin complex() class are faster than naive implement complex numbers multiplications. On C++ usage std::complex slowest than naive implementation multiplication of complex numbers.
As I did got it later the python and pygame aren't fit to draw separates pixels. So thereat I had rewrited it fractal on C++
- Python
- PyGame 1.9.6
- Install the appropriate PyGame
- Just copy-paste my code into interpreter
- Mouse wheel to zoom cartesian area
- Mouse drag to drag cartesian area
- Num+ or Num- to change zoom rectangle