quil

Casey 2024-06-03T15:18:03.575859Z

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?

p-himik 2024-06-03T15:32:12.355499Z

It seems that :quads and :quad-strip are bugged - even their own example at http://quil.info/sketches/local/58705ec49aa3fcdbddd9c496cffb10012b83f64ff3dd0442a7fb629ffeb06ee3 shows the same behavior.

Casey 2024-06-03T15:36:30.865609Z

Indeed, I just noticed that myself. I've opened an issue on github

p-himik 2024-06-03T15:37:26.222659Z

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.

Casey 2024-06-03T15:49:38.681979Z

Ah yes, replacing q/begin-shape with (.beginShape (ap/current-applet) (aget js/p5.prototype "QUADS")) fixes it. Nice find, thanks @p-himik

👍 1
Casey 2024-06-03T15:59:07.078009Z

Updated the issue!