Generate mazes in PNG format using the depth-first search algorithm.
Simple C program for generating mazes of variable size using the depth-first search algorithm. For more information, see Wikipedia.
$ git clone https://github.com/8dcc/maze-generator
$ cd maze-generator
$ make
...
You can change a lot of macros in the code, like cell size, wall width, colors, entrance and exit positions, vertical and horizontal bias, etc.
$ ./maze-generator.out <output.png> <w> <h>
Generating 65x50 maze...
Writing 650x500 file...
Done.