Back to Art

Diamond Square

Tackling the problem of semi-realistic looking terrain generation in clojure.

Image

I recently started looking into the diamond-square algorithm. The following is a short-ish walkthrough of how I tackled the problem in clojure and the results. You can find the leiningen repo here and follow along within that, or simply read the code below to get an idea.

leiningen

here

-----

Published 2014-01-11