Hei There!
I am playing with nim and SDL2 and have been hacking together a Mandelbrot generator. Consider that I am not a C type programmer, my knowledge with programming is based on html, php, mysql and some js.
Here is a GIF showing the artifacts: https://media.giphy.com/media/3o6vXPxFdXDzmYhMTS/giphy.gif
And here you can download the source for compiling: https://www.file-upload.net/download-12633332/AnoraksMandelbrot.zip.html
There are some basic controls:
Any clue what is happening there? Is this a limitation of SDL or nim; or did i do something wrong? :D
Very highly magnified images require more than the standard 64–128 or so bits of precision that most hardware floating-point units provide, requiring renderers to use slow "bignum" or "arbitrary-precision" math libraries to calculate.
https://en.wikipedia.org/wiki/Mandelbrot_set#Perturbation_theory_and_series_approximation
Thanks for this hint! I was thinking alreading that the precision might be a problem. But this explains it in good detail. :)