# How can I create a SVG shape from a svg code?

**URL:** <https://discourse.processing.org/t/how-can-i-create-a-svg-shape-from-a-svg-code/23948>\
**Category:** Coding Questions\
**Created:** [September 19, 2020, 2:03am UTC](https://discourse.processing.org/t/how-can-i-create-a-svg-shape-from-a-svg-code/23948 "2020-09-19T02:03:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timi](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@Timi](https://discourse.processing.org/u/Timi)\
**Post date:** [September 19, 2020, 2:03am UTC](https://discourse.processing.org/t/how-can-i-create-a-svg-shape-from-a-svg-code/23948/1 "2020-09-19T02:03:54Z")

</div>

Hi everyone, I have a svg code:

path class=“st0” d=“M39.28,4.19c0,0-40,19-36,61s26,72,55,82S39.28,4.19,39.28,4.19z”/\>

I want to use this code to generate svg shapes, is there any function or library can I use? Currently I can only find function for exporting svg, thank you so much!

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [September 19, 2020, 7:14am UTC](https://discourse.processing.org/t/how-can-i-create-a-svg-shape-from-a-svg-code/23948/2 "2020-09-19T07:14:06Z")

</div>

Hi @Timi  
Not sure what you mean, but doesn’t [loaddisplaysvg](https://www.processing.org/examples/loaddisplaysvg.html) suit for you?
