This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-12
Channels
- # beginners (102)
- # boot (5)
- # cider (1)
- # cljs-dev (15)
- # cljsjs (1)
- # cljsrn (20)
- # clojure (104)
- # clojure-austin (1)
- # clojure-europe (8)
- # clojure-italy (39)
- # clojure-nl (17)
- # clojure-spec (38)
- # clojure-uk (23)
- # clojurescript (34)
- # cursive (31)
- # data-science (5)
- # datomic (3)
- # emacs (28)
- # joker (1)
- # kaocha (5)
- # klipse (1)
- # leiningen (1)
- # off-topic (66)
- # quil (4)
- # reagent (35)
- # ring-swagger (1)
- # rum (1)
- # shadow-cljs (121)
- # test-check (1)
- # tools-deps (33)
- # uncomplicate (2)
- # vim (15)
- # yada (1)
Is it possible to draw lines using a dotted pattern? I looked at stroke and fill fns, bit they don’t seem to allow that..
I translated this from an example in java processing.
(defn dotted-line [x1 y1 x2 y2 dots]
(doseq [i (range dots)]
(let [x (q/lerp x1 x2 (/ i dots))
y (q/lerp y1 y2 (/ i dots))]
(q/point x y))))
@U9U0G3Q8Y Very nice - Thanks!
hey there! i’m working on a immersive LED sculpture project using the amazing https://github.com/heronarts/LXStudio and i’m running into an issue. I’ve been able to use quil to run lxstudio successfully, but lxstudio uses a few callbacks that are usually defined in the main processing sketch, namely void initialize(final heronarts.lx.studio.LXStudio lx, heronarts.lx.studio.LXStudio.UI ui)
and void onUIReady(heronarts.lx.studio.LXStudio lx, heronarts.lx.studio.LXStudio.UI ui)
. Does anyone know how might be able to extend quil to implement these methods?