<div class='type'>Function</div>


<a id='references'></a>


<h2 id="addsvg-pathdata">addSvg</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun Path.addSvg(pathData: String)
```


Adds the specified SVG `path data`(https://www.w3.org/TR/SVG2/paths.html#PathData) to this
`Path`. The SVG path data encodes a series of instructions that will be applied to this path. For
instance, the following path data:

`M200,300 Q400,50 600,300 L1000,300`

Will generate the following series of instructions for this path:
```
moveTo(200f, 300f)
quadraticTo(400f, 50f, 600f, 300f)
lineTo(1000f, 300f)
```

To convert a `Path` to its SVG path data representation, please refer to `Path.toSvg`.