quil

unwarysage 2018-12-09T00:17:01.000600Z

hmm.

unwarysage 2018-12-09T00:17:15.001Z

If I have the following project structure

unwarysage 2018-12-09T00:17:42.001500Z

/
    /project.clj
    /src/ 
           /namespace/
                                /core.clj

unwarysage 2018-12-09T00:19:00.002100Z

Where should I put an image to load with load image

unwarysage 2018-12-09T00:19:12.002500Z

I have tried in the root, next to project.clj

unwarysage 2018-12-09T00:19:45.002900Z

I have tried next to core.clj

unwarysage 2018-12-09T00:20:14.003300Z

https://stackoverflow.com/questions/18714941/load-display-image-in-clojure-with-quil says it should be in the root

unwarysage 2018-12-09T00:20:17.003600Z

but no dice

unwarysage 2018-12-09T00:22:35.004300Z

Ah, other detail.

load-image
is failing with nullpointer

unwarysage 2018-12-09T00:22:43.004600Z

not a file not found exception

unwarysage 2018-12-09T00:27:14.004800Z

(def present-image (atom nil))

(defn set-present-image! [img-path]
  (reset! present-image (q/load-image img-path)))