Fractals are magnificent self-similar patterns who reveal the inner dimensions of 1-dimensional shapes. Here we render them on the GPU for speed and precision to explore those patterns to deeper depths.
This has been tested on OS X 10.9.5 to 10.10.5.
You'll need to install SDL2
$>make
$>./fractal [mandelbrot][newton][julia]
As you can see above, you can render three different fractal patterns: mandelbrot
,
newton
and julia
. Zoom all the way out on newton
. It's wild.
+ - zoom in
− - zoom out
↑ ← → ↓
Not all macs between 2013 and now support double
precision in OpenCL kernels. It's worth finding out if yours does because you can go deeper into the fractals with more details.
$> sh adjustPrecision.sh double
If it doesn't work, switch back:
$> sh adjustPrecision.sh float