Last active
May 23, 2016 01:27
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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