pyscript-collective
pyscript-collective copied to clipboard
Add Bouncy Bubbles p5.js demo
I'm not thrilled about the hacky pytest workaround, but I don't know of a way to test purely graphical web pages...
There's a weird issue with all p5.js examples which use the
<script>
function setup() {}
</script>
workaround, to wit: a number is printed in the browser window, above the sketch canvas.
It seems to be specifically related to using js.window.requestAnimationFrame(create_proxy(draw)) in the sketch, as it doesn't show up for "static" sketches (e.g. #14)
Signed-off-by: Ben Alkov [email protected]