Experimental creative coding framework
JavaScript Clojure Other
Latest commit 5f4bea6 Oct 16, 2016 @nasser change image in README
Failed to load latest commit information.
electron rearrange code Oct 16, 2016
figwheel-browser update resources Oct 3, 2016
.gitignore Add gitignore Oct 16, 2016
LICENSE Add LICENSE Sep 25, 2016
README.md change image in README Oct 16, 2016


Zajal 0.6 - Atlantic

Atlantic is the next major rewrite of the Zajal creative coding framework. It is built on ClojureScript, Reagent, React, ThreeJS and the ongoing progress of the Arcadia project. The goal, as always, is to create a highly expressive, completely live creative coding experience suitable for beginners and advanced programmers alike.

This fourth rewrite, continues the exploration of Clojure and Lisp in the service of creative coding, but builds on a web-based stack of functional reactive tools that have become practical in recent years. This incarnation of Zajal, like the previous one and the Arcadia project, experiments with the effects of functional programming on high performance interactive graphics programming. The hope is to provide a real semantic alternative to the imperative painters-algorithm style tools available today.


Extremely early, nothing beyond the basic concept has been demonstrated to work.

;; start state of the sketch
(def start {:click-count 0})

;; function to update the state each frame
(defn step [state {:keys [mouse]}]
  (if (:pressed? mouse)
    (update state :click-count inc)

;; function to draw the state
(defn draw [{:keys [click-count]}]
  (em (text "Clicks ")
      (text (there/prand click-count))))

(defonce test-sketch
  (sketch start #'step #'draw))


The current prototype (in the electron folder) is a JavaScript Electron project with the clojurescript-npm package built in. It uses Elm's virtual DOM implementation due to its speed and simplicity compared to react.


Electron needs to be installed.

git clone https://github.com/nasser/zajal.git
cd zajal
git checkout atlantic
cd electron
electron . hello.cljs

Using (Figwheel)

The old Figwheel prototype still works, but will be phased out of the repo at some point.

Leiningen needs to be installed.

git clone https://github.com/nasser/zajal.git
cd zajal
git checkout atlantic
cd figwheel-browser
lein figwheel


Zajal is a labor of love by Ramsey Nasser. Use it for good, not evil.

Provided under the MIT License.


This project has been generously supported by the following institutions. They believed in it, challenged it, and pushed it forward. Zajal would be nowhere without them, and I thank them all deeply.