Is it possible to get an array of p5.Vectors from SVG file?

I see that p5js does not support SVG, but is there a known way to somehow extract data from an SVG file? Probably some library like Geomerative for Processing?

I am building an online tool and I want it to work with users’ SVGs. So tricks like parsing SVG with Processing and writing a list of vectors into a txt file will not work.

Hi @grshch,

Maybe you can use this…

https://zenozeng.github.io/p5.js-svg/examples/#manipulating

Cheers
— mnse

2 Likes

Thanks @mnse, I’ve seen this, but my project involves shaders, so I use WEBGL runtime.

I added using SVG runtime to my To-Do list for this year :slight_smile: Just with some other project