Looking for graphics library recommendation

Hi all,

I’m trying to generate some 2d pictures of the Mandelbrot set (& similars) following along with this paper; however the paper is from 2004 and I’m not sure the graphics library they use still exists or is recommended.

is there any easy to use, well maintained library I could use? If possible I’d like to be able to generate high resolution images and export to file (png/jpeg or whatever).

Thanks!

For a Mandelbrot set program, I would (personally) reach for JuicyPixels

I’d recommend brillo, that also allows you to animate it (e.g. zooming in) in the future. You can combine it with JuicyPixels using the brillo-juicy package.

For fast non-interactive non-fuss rendering you can take massiv-io: Import/export of Image files into massiv Arrays
It also wraps JuicyPixels but binds it to massiv: “Multi-dimensional Arrays with fusion, stencils and parallel computation”.

I personally really like diagrams but I don’t know how good it is for Point -> Color images

Yeah, diagrams is great but it’s fundamentally about vector graphics, and for rendering the Mandelbrot set you have to be thinking in pixels.

I would say it’s fundamentally about composition. rasterDia in Diagrams.TwoD.Image is sufficient for rendering the set I think. Though evidently is it not necessary Diagrams - The Mandelbrot set . And it has both vector and raster backend of various kinds.

Ok, thanks all for the suggestions!

I’ve done a very first experiment using JuicyPixels because it provides the exact same interface that’s discussed in the paper (writePixel image x y color) so that made it trivial to follow along with the tutorial.

But yeah, currently it’s just saving an image on disk; would definitely be nice to be able to interact with it, zoom etc. so I might take a look at Brillo (or other options) next!