This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-03
Channels
- # aws (12)
- # beginners (12)
- # biff (10)
- # calva (1)
- # cider (10)
- # cljfx (1)
- # clojure (2)
- # clojure-conj (1)
- # clojure-europe (25)
- # clojure-madison (1)
- # clojure-nl (1)
- # clojure-norway (12)
- # clojure-sweden (4)
- # clojure-uk (6)
- # datomic (11)
- # dev-tooling (3)
- # emacs (5)
- # gratitude (1)
- # introduce-yourself (7)
- # java (3)
- # jobs (1)
- # london-clojurians (2)
- # lsp (23)
- # off-topic (4)
- # practicalli (9)
- # quil (6)
- # re-frame (3)
- # reagent (4)
- # remote-jobs (1)
- # ring (1)
- # shadow-cljs (18)
- # squint (67)
- # tools-deps (5)
- # xtdb (4)
- # yamlscript (12)
Something seems to be going wrong with the p3d/webgl renderer. I can't draw a simple filled quad using quil, but the corresponding js works just fine. Quil sketch: http://quil.info/sketches/show/6d6584026806e3a5b826391cc105ec5b27be056cd909e468d287464566897c8c P5.js sketch: https://editor.p5js.org/Ramblurr/sketches/GuvkKH-aY Anyone have a clue what the issue is?
It seems that :quads
and :quad-strip
are bugged - even their own example at http://quil.info/sketches/local/58705ec49aa3fcdbddd9c496cffb10012b83f64ff3dd0442a7fb629ffeb06ee3 shows the same behavior.
The root cause seems to be that q/shape-modes
has strings for those values instead of numbers. But functions that use it in Quil don't expect that and call int
on the values for some reason.
Ah yes, replacing q/begin-shape
with (.beginShape (ap/current-applet) (aget js/p5.prototype "QUADS"))
fixes it. Nice find, thanks @U2FRKM4TW