quil

sova-soars-the-sora 2020-09-16T22:54:34.000600Z

Ohi!

sova-soars-the-sora 2020-09-16T22:56:01.001200Z

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 "<https://placekitten.com/100/100>") 0 5 )
   )

(defn draw-state [state]
      (q/image (q/load-image "<https://placekitten.com/100/100>") 0 5 ))

sova-soars-the-sora 2020-09-16T22:56:32.001900Z

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-sora 2020-09-16T23:09:56.002100Z

how else can i load an image o.o

sova-soars-the-sora 2020-09-16T23:49:32.002500Z

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

sova-soars-the-sora 2020-09-16T23:49:56.002700Z

err /resources/public/. ?

sova-soars-the-sora 2020-09-16T23:50:23.003200Z

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-sora 2020-09-16T23:59:44.003900Z

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