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

**URL:** <https://discourse.processing.org/t/is-it-possible-to-get-an-array-of-p5-vectors-from-svg-file/40609>\
**Category:** Project Guidance\
**Created:** [January 16, 2023, 2:40pm UTC](https://discourse.processing.org/t/is-it-possible-to-get-an-array-of-p5-vectors-from-svg-file/40609 "2023-01-16T14:40:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![grshch](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@grshch](https://discourse.processing.org/u/grshch)\
**Post date:** [January 16, 2023, 2:40pm UTC](https://discourse.processing.org/t/is-it-possible-to-get-an-array-of-p5-vectors-from-svg-file/40609/1 "2023-01-16T14:40:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mnse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/mnse/32/16520_2.png) [@mnse](https://discourse.processing.org/u/mnse)\
**Post date:** [January 16, 2023, 4:42pm UTC](https://discourse.processing.org/t/is-it-possible-to-get-an-array-of-p5-vectors-from-svg-file/40609/2 "2023-01-16T16:42:48Z")

</div>

Hi @grshch,

Maybe you can use this…

> **[GitHub - zenozeng/p5.js-svg: SVG runtime for p5.js.](https://github.com/zenozeng/p5.js-svg)**
>
> SVG runtime for p5.js. Contribute to zenozeng/p5.js-svg development by creating an account on GitHub.

[https://zenozeng.github.io/p5.js-svg/examples/#manipulating](https://zenozeng.github.io/p5.js-svg/examples/#manipulating)

Cheers  
— mnse

---

<div class="post-metadata">

**Author:** ![grshch](https://avatars.discourse-cdn.com/v4/letter/g/ed8c4c/32.png) [@grshch](https://discourse.processing.org/u/grshch)\
**Post date:** [January 16, 2023, 10:13pm UTC](https://discourse.processing.org/t/is-it-possible-to-get-an-array-of-p5-vectors-from-svg-file/40609/3 "2023-01-16T22:13:00Z")

</div>

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 🙂 Just with some other project
