There is a small syntax typo in the redraw function it should be:
(defn redraw ()
(
(clear)
(rec 300))
)
Cool project. Perfect for those of us who have a warm spot for Processing and a fascination with Lisp.
Per a previous response I did a little more testing and found this strange behavior. The following code will only work when the (clear) line is commented out. When the line is not commented out nothing prints to the console. This is similar behavior with the spiral.lisp example. The code after clear will not run.
(defn foo ()
(clear)
(debug "working"))
(on "animate" foo)
I have a similar issue. With the spiral example I just get a blank screen. However, oddly, when I comment out the (clear) in redraw it works, although the frames stack on one another and quickly the canvas turns into a colored blob.
I am however able to get the animation working of the bouncing rect from the Youtube tutorial. It is not clear why the spiral does not work. Puzzling.