This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-09
Channels
- # announcements (23)
- # asami (25)
- # babashka (38)
- # beginners (53)
- # calva (17)
- # clara (5)
- # clj-commons (1)
- # clj-kondo (18)
- # clojure (11)
- # clojure-europe (17)
- # clojure-france (1)
- # clojure-germany (5)
- # clojure-nl (2)
- # clojure-sg (4)
- # conjure (3)
- # deps-new (6)
- # fulcro (16)
- # off-topic (46)
- # pedestal (11)
- # react (2)
- # reagent (5)
- # reclojure (7)
- # rewrite-clj (1)
- # sci (18)
- # shadow-cljs (75)
- # sql (3)
- # xtdb (12)
has anybody played with quil library(https://github.com/quil/quil)? I can’t get the load-image
function work. No matter where I place the image it returns NullPointerException.
now the lib does some magical stuff so to speak, some functions only work within a sketch, meaning you need to call it from within a setup or draw function
I just tried the example from the documentation with Clojure - worked just fine. And yes, load-image
is called within setup
there.
you have to think of this as a stateful environment that you interact with by giving it stuff that is then applied within that environment. Kind of like a simple game engine or framework works. It calls you, you don’t call it.
Most Quil functions need to be called inside of draw/setup because they needs access to the current graphics object