Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Hasnep/roc-svg
🖼️ A library to create SVGs in Roc
https://github.com/Hasnep/roc-svg
roc-lang svg
Last synced: 3 months ago
JSON representation
🖼️ A library to create SVGs in Roc
- Host: GitHub
- URL: https://github.com/Hasnep/roc-svg
- Owner: Hasnep
- License: upl-1.0
- Created: 2023-06-06T06:24:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-16T13:52:42.000Z (7 months ago)
- Last Synced: 2024-05-27T12:40:24.372Z (6 months ago)
- Topics: roc-lang, svg
- Language: Roc
- Homepage: https://hasnep.github.io/roc-svg
- Size: 43.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- roc-awesome - Hasnep/roc-svg
README
# Roc SVG
A library to create SVGs in Roc.
## Example
This Roc code:
```roc
myCircle = Svg.circle [Attribute.cx "50", Attribute.cy "50", Attribute.r "50"] []
Svg.svg [Attribute.width "100", Attribute.height "100"] [myCircle] |> Svg.render
```Returns this SVG:
```svg
```
## Licence
This repository is released under the [UPL licence](./LICENCE).