tapioca24 / p5.capture

🎬 super easy recording for p5.js animations
MIT License
230 stars 6 forks source link

SVG canvas #24

Open EltonoLab opened 1 year ago

EltonoLab commented 1 year ago

Hi, is there a way to record when the canvas is declared with a SVG renderer: ' createCanvas(400, 400, SVG); ' ?

I'm running a SVG animation that's imported in the canvas with loadSVG() but when trying to record it I get an error. If I load the SVG with loadImage() in a normal canvas ' createCanvas(400, 400); ' the recorder works but the SVG is still (no animation).

tapioca24 commented 1 year ago

Hi, @EltonoLab. Thank you for reporting this one!

I don't think there is an SVG renderer in p5.js, are you using a library such as p5.js-svg? I have no plans to support an SVG renderer at the moment.

EltonoLab commented 1 year ago

Hi, yes, we're loading p5.svg.js. I guess I'll have to record the animations one by one with a screen capture. Thank you anyway!