pyscript-collective icon indicating copy to clipboard operation
pyscript-collective copied to clipboard

Add Bouncy Bubbles p5.js demo

Open tildebyte opened this issue 3 years ago • 0 comments

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]

tildebyte avatar Jul 04 '22 20:07 tildebyte