Mandelbrot.hs

About

Julia set

This was one of the projects developed whilst learning Haskell. It uses SDL to plot a Mandelbrot set, which can be changed to a Julia set (with c at the centre of the window) at the press of a key.

This is probably handy if you wish to learn how to use SDL with Haskell, or poke about in a fractal. The code has been heavily refactored as I learned, so is probably not the best quality, but it seems to work OK.

The algorithm used to compute fractals does so using double-precision arithmetic, so will take a while to bottom out. Unfortunately I didn't allow people to vary the number of iterations, so you'll have to tweak Main.hs to do that (it's fairly clearly labelled at the top).

Download

Download Mandelbrot.tar.gz and start the fun!

Instructions

To compile, simple run make.

Requirements

To run this, you'll need the SDL package, which is available through cabal. You'll also need Haskell, obviously.