Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
The Clojure Image Synthesis Kit
Clojure Java

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
README.md
pom.xml

README.md

Clisk

Clisk is a DSL library for procedural image generation that can be use from Clojure and Java.

Example code and resulting image

  (show  (v+ [0.9 0.6 0.3] 
             (dot [0.2 0.2 0] 
                  (gradient (seamless 1.0 plasma) ))))

Golden rock

For more examples see the Wiki

Installation

The best way to get started with clisk is to install it from Clojars using either leiningen or Maven.

Once you have clisk as a dependency, you should be able to get going with the key functionality as follows:

(ns my-ns
  (:use [clisk core functions patterns colours]))

(show (checker red white))

Features

  • A concise DSL for specifying image generators through function composition
  • Multi-dimensional texture generation (e.g. 4D textures including time dimension for animations)
  • Fast image synthesis thanks to compiled image generation functions (typically sub-second generation 256*256 4x antialiased textures)
  • Anti-aliasing (arbitrary precision)
  • A wide variety of patterns and transforms
  • Easily extensible with your own image generation functions
  • (In development) ability to render 3D lit surfaces

Plasma Globe

Something went wrong with that request. Please try again.