p5.capture icon indicating copy to clipboard operation
p5.capture copied to clipboard

SVG canvas

Open EltonoLab opened this issue 2 years ago • 2 comments

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).

EltonoLab avatar Mar 02 '23 12:03 EltonoLab

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.

tapioca24 avatar Mar 08 '23 14:03 tapioca24

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!

EltonoLab avatar Mar 10 '23 12:03 EltonoLab