ccapture.js icon indicating copy to clipboard operation
ccapture.js copied to clipboard

FYI: p5.js 0.9.0 is the last version that works with ccapture.js

Open jtoy opened this issue 4 years ago • 3 comments

I tested with the latest versions, they all dont work, the last one that ccapture works with is p5.js version 0.9.0. I didnt debug it in detail , but the problem is that the p5js canvas doesn't render as soon as you call capturer.start();

jtoy avatar Mar 21 '20 23:03 jtoy

... the p5js canvas doesn't render as soon as you call capturer.start();.

I've found out a workaround when the same happened to me!

I had to move capturer.start(); into draw() and only invoke it when frameCount reached 1: frameCount === 1 && capturer.start();

https://Glitch.com/edit/#!/ccapture-bouncing-colorful-balls-demo?path=sketch.js https://ccapture-bouncing-colorful-balls-demo.Glitch.me

GoToLoop avatar Mar 22 '20 08:03 GoToLoop

tried that, it works, thanks, this will help a bunch of people!

jtoy avatar Mar 24 '20 14:03 jtoy

It doesn't work with the latest P5.js as soon as I call capturer.start() the animation stops.

jcubic avatar Jul 12 '22 22:07 jcubic