This code is based on http://freespace.virgin.net/hugo.elias/models/m_perlin.htm
It generates an image of 2D perlin noise using several threads, then saves the result as png.
Run sudo apt install build-essential libpng-dev
Run make
First make, then run ./makeimage