Getting gif exporting via ccapture working in the p5js web editor

Hi All,

I’m trying to get animated gif export via ccapture.js, there is an example here:

I’ve duplicated @GoToLoop code into the online editor:

But I get the error:

“ReferenceError: can’t access lexical declaration `bg’ before initialization (: line 45)”

Does anyone have a working version of CCapture exporting a gif on the p5.js web editor?

Cheers,

Joel

hi @jgl

Havn’t worked with CCapture but I am working on an animation loop library which supports GIF exports: