(defn display-pacer [p]
(let [[x y] (:location p)]
(q/ellipse x y 10 10)))
When I call that from draw-state in core.clj, I get errors. I am assuming this has something to do with the "only works inside sketch functions" limitation of ellipse? So, I'm trying to understand why that is, and how I can get around it.
Ideally, I'd like to keep the draw-state pretty minimal and define the implementation of how the pacer is displayed in its own file.
I tried requiring quil.core in the pacer file too, but that doesn't seem like it should work (and it doesn't!).
So, just looking to understand this behaviour so I can figure out how this all works. Thanks!
Jason