Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/macnelly/quad-svg
render svg to macroquad::texture::Texture2D using resvg
https://github.com/macnelly/quad-svg
Last synced: 3 months ago
JSON representation
render svg to macroquad::texture::Texture2D using resvg
- Host: GitHub
- URL: https://github.com/macnelly/quad-svg
- Owner: macnelly
- License: apache-2.0
- Created: 2022-12-07T19:41:25.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T11:59:23.000Z (over 1 year ago)
- Last Synced: 2024-07-08T19:34:30.418Z (4 months ago)
- Language: Rust
- Size: 13.7 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-quads - quad-svg - renders svg to macroquad's Texture2D using [resvg](https://lib.rs/resvg). (Libraries / Libraries: Other)
README
quad-svg
=========render svg to macroquad::texture::Texture2D using resvg
# examples
display 50 svg drawn ferris moving from left to right
```
cargo run --example="ferris"
```display 100 svg drawn stars with text "Text" that are moving from top to bottom
```
cargo run --example="star"
```# TODO
I want to include the font in the binary to not rely on system font.
The font example is currently only working if you have font-family "Caladea" installed. Otherwise the star is empty.