Fork me on GitHub
#quil
<
2020-09-16
>
sova-soars-the-sora22:09:01

quil with clojurescript, i'm trying to draw a kitten to the screen par le exampla de internets and...

(defn update-state [state]
  (q/image (q/load-image "") 0 5 )
   )

(defn draw-state [state]
      (q/image (q/load-image "") 0 5 ))

sova-soars-the-sora22:09:32

not doin' anything! What up ? am I not invoking this right? my run-sketch says :setup setup and :update update-state :draw draw-state ...

sova-soars-the-sora23:09:56

how else can i load an image o.o

sova-soars-the-sora23:09:32

when the documentation says "images must be in the data directory of the current sketch" does that mean /public/resources/ ?

sova-soars-the-sora23:09:56

err /resources/public/. ?

sova-soars-the-sora23:09:23

Seems like no matter where I put the image files they do not get loaded, but I did successfully load an image from a url (placekitten)

sova-soars-the-sora23:09:44

I think I've tried every directory possible in my CLJS project to load an image in the rendering.... remote URL works fine, local image... hands up nonchalantly