Vesther / Cloud-Fractal

An implementation of the Diamond-square algorithm in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A implementation of the Diamond-square algorithm in C++

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.

Sample

About

An implementation of the Diamond-square algorithm in C++


Languages

Language:C++ 100.0%