[orx-composition] Add details to README.md files (#332)

This commit is contained in:
Abe Pazos
2024-04-02 13:14:38 +02:00
committed by GitHub
parent 28aed391f2
commit 275f677cf3
3 changed files with 35 additions and 3 deletions

View File

@@ -2,4 +2,22 @@
SVG reader and writer library.
This code was previously found in `openrndr-svg`.
## Methods
```kotlin
fun loadSVG(fileOrUrlOrSvg: String): Composition
fun loadSVG(file: File): Composition
fun parseSVG(svgString: String): Composition
fun Shape.toSvg(): String
fun ShapeContour.toSvg(): String
fun Composition.saveToFile(file: File)
fun Composition.toSVG(): String
```
Find basic examples of loading and saving SVG files
[in the guide](https://guide.openrndr.org/drawing/drawingSVG.html).
_The code in `orx-svg` was previously found under `openrndr-svg` in the `openrndr` repository._