I have made a program on Javascript that creates the mandelbrot fractal and I drew it in an html canvas. My method to render it is to iterate per row, from 0 to 500 pixels and then simply do a loop that creates 500 rows of 500 pixels.
My problem is that when I render it, (refresh the page with more magnification), it takes a lot of time A LOT. 300 magnification works in about 30 seconds but 5000 takes over an hour. Please help. I want to have very high magnifications and the image to load quickly.
5000X magnification (-1.42 , 0)
I run my program through a downloaded file, edited in atom, with extension .html in chrome browser.