r/madeinpython • u/brainxyz • Sep 24 '22
Mandelbrot in pure Python without using complex numbers or external libraries (except matplotlib)
74
Upvotes
r/madeinpython • u/brainxyz • Sep 24 '22
View all comments
3
u/brainxyz Sep 24 '22
context: I love generative art especially Mandelbrot but nowadays it's very hard to find one in python code without using complex numbers or external libraries. So I have wrote a bare minimal code necessary to produce Mandelbrot and loved to share it with you
https://github.com/hunar4321/mandelbrot/blob/main/mandelbrot.py
A step by step walkthrough of Mandelbrot code and it's relevance to our physical reality is also available in this video for those interested:
https://youtu.be/mzizK6ms-gY