This is a short C++ program which generates a random midpoint displacement fractal, also known as a Plasma/Cloud fractal using the Diamond-square algorithm.
The resulting image is displayed in a OpenGL/GLUT window and written to a PGM file.
Note: Requires GLUT.
Press escape to quit the program, press space to generate a new random fractal.