This project was built using code I wrote previously for this pure javascript fractal renderer: http://jonathan-potter.github.io/Mandelbrot/ Jamie Wong's post on hacker news earlier this week was a massive help in allowing me to switch to using WebGL for the rendering portion. His post can be found here: http://jamie-wong.com/2016/07/06/metaballs-and-webgl/
That's funny. I spent the weekend making a Mandelbrot set renderer using the same tutorial: https://github.com/andrelaszlo/webgl/ It needs a little refactoring, and probably only works in Chrome.
WebGL Julia Set
21–24 of 24 posts
Re: WebGL Julia Set
#22I like fractal renderers, I made one in Haskell[1] once. In only 41 lines of code (23 if you strip white lines and type sigs). It also makes a post of its output combined with the code[3]; warning 18MB PDF (sorry Github). [1] https://github.com/cies/haskell-fractal [2] https://github.com/cies/haskell-fractal/blob/master/fractal.... [3] https://github.com/cies/haskell-fractal/blob/master/poster.p...
for a in range(900):print"\n.x"[(a%30>0)+(abs(reduce(lambda z,c:zz+c,[a%30.1-2+1j(a/30.1-1.5)]*30))For a code golf on stackoverflow
Re: WebGL Julia Set
#23I like fractal renderers, I made one in Haskell[1] once. In only 41 lines of code (23 if you strip white lines and type sigs). It also makes a post of its output combined with the code[3]; warning 18MB PDF (sorry Github). [1] https://github.com/cies/haskell-fractal [2] https://github.com/cies/haskell-fractal/blob/master/fractal.... [3] https://github.com/cies/haskell-fractal/blob/master/poster.p...
I made one in one line of python: for a in range(900):print"\n.x"[(a%30>0)+(abs(reduce(lambda z,c:z z+c,[a%30 .1-2+1j (a/30 .1-1.5)]*30)) For a code golf on stackoverflow
Re: WebGL Julia Set
#24Complex numbers offer an orthogonal dimension to the integer number line , where multiplication aquires a rotational element. This allows intermediate 90° (π/2) multiplication and Julia's Set is shown to be a map to Madelbrot's Fractal. https://acko.net/blog/how-to-fold-a-julia-fractal/ Also the fourier transform is much more obvious in the imaginary plane. https://acko.net/tv/toolsforthought/