The JS source is longer.
The Mandelbrot set in JavaScript
11–17 of 17 posts
Re: The Mandelbrot set in JavaScript
#12I did a mandelbrot viewer in javascript like 5 years ago. In fact, it was the only thing I ever wrote in Javascript besides dom manipulation crap. I wanted to try the canvas tag when it was first introduced, and this was the first project that came to mind. My version had color and let you click on the image to zoom. After about 20 clicks, it would run out of precision and the pixels would turn into larger and larger blocks. It was also slow as dirt back then. I'd bet it would probably run pretty good nowadays.
Re: The Mandelbrot set in JavaScript
#13http://codepen.io/anon/pen/Ircav
Amazing that we can write these things up so quickly in a browser.
Re: The Mandelbrot set in JavaScript
#14The next step is smooth coloring. I've written a post explaining it here: https://csl.name/post/mandelbrot-rendering/ The js code can be tested on https://csl.name/mandelbrot
Re: The Mandelbrot set in JavaScript
#15Re: The Mandelbrot set in JavaScript
#16The next step is smooth coloring. I've written a post explaining it here: https://csl.name/post/mandelbrot-rendering/ The js code can be tested on https://csl.name/mandelbrot
Did you forget renew a domain name? The demo link in your post's opening paragraph is now leading to some kind of Japanese Bra company.
Re: The Mandelbrot set in JavaScript
#17a fractal is much more fun when you can zoom http://calvinmetcalf.github.io/leaflet-fractal/#255/-0.37/0.... course that's MUCH more then 25 lines
I was able to add the zoom capability without TOO much code: