Skip to content

Commit

Permalink
Update to add main method for "run balls".
Browse files Browse the repository at this point in the history
  • Loading branch information
Dale Thatcher committed May 3, 2011
1 parent 80d2ed5 commit ce08f20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/coloured_balls/core.clj
@@ -1,6 +1,7 @@
(ns coloured-balls.core
(:use [rosado.processing]
[rosado.processing.applet]))
[rosado.processing.applet])
(:gen-class))

;; here's a function which will be called by Processing's (PApplet)
;; draw method every frame. Place your code here. If you eval it
Expand Down Expand Up @@ -32,5 +33,6 @@
(defapplet balls :title "Coloured balls"
:setup setup :draw draw :size [400 400])

(run balls)
(defn -main [& args]
(run balls))

0 comments on commit ce08f20

Please sign in to comment.