Skip to content

Instantly share code, notes, and snippets.

@sortofsleepy
Last active May 23, 2016 01:27
Show Gist options
  • Save sortofsleepy/f5732cf7fc1654d29aa3891ee28a9d3d to your computer and use it in GitHub Desktop.
Save sortofsleepy/f5732cf7fc1654d29aa3891ee28a9d3d to your computer and use it in GitHub Desktop.
working with Processing in clojure (assumes Processing jars have been imported / specified on project.clj)
(ns processing-test.core
(:gen-class)
(:require
[processing-test.sketch :as sk])
(:import
[processing.core PApplet]))
(defn -main
"I don't do a whole lot ... yet."
[& args]
(PApplet/runSketch (into-array String ["--present" "sketch"]) sk/sketch))
(ns processing-test.sketch
(:import
[processing.core PApplet]))
(def sketch
(proxy [PApplet] []
(settings []
(proxy-super size 300 300)
)
(setup []
)
(draw [])
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment