Clisk is a Clojure based DSL/library for procedural image generation.
You can use it for:
The core operation of Clisk is taking an image description using the Clisk DSL as input and creating a bitmap images as output. You can create images of arbitrary size as long as they fit in memory.
Clisk is intended to be used from Clojure in a REPL environment, but can also with a little effort be used from Java.
;; Create a Voronoi map based on a mathematical function
(def vblocks
(v* 5.0
(voronoi-function
`(Math/sqrt (- (* ~'y ~'y) (* ~'x ~'x))))))
;; Render an texture using the Voronoi map as a height-field
(show (render-lit
(seamless vplasma)
(v+ (v* 0.2 (seamless 0.2 (rotate 0.1 plasma)))
(v* 0.6 vblocks))))
Demos and mini-tutorials can be found by examining the code samples here:
For more examples see the Wiki
The best way to get started with clisk is to install it from Clojars using either leiningen or Maven.
Once you have Clisk specified as a dependency, you should be able to get going with the key functionality as follows:
(use 'clisk.live)
(show (checker red white))
Clisk is open source, licensed under the GNU Lesser General Public License (LGPL)