Skip to content

Instantly share code, notes, and snippets.

@Naheel-Azawy
Naheel-Azawy / mandelbrot.c
Last active July 24, 2017 18:55 — forked from andrejbauer/mandelbrot.c
A simple program for computing the Mandelbrot set.
/*
This program is an adaptation of the Mandelbrot program
from the Programming Rosetta Stone, see
http://rosettacode.org/wiki/Mandelbrot_set
Compile the program with:
gcc -o mandelbrot -O4 mandelbrot.c
Usage:
./mandelbrot <xmin> <xmax> <ymin> <ymax> <maxiter> <xres> <out.ppm>
Example: