Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meithecatte/cairo-svgpath
Draw on cairo surfaces using SVG path syntax, with compile-time parsing and conversion.
https://github.com/meithecatte/cairo-svgpath
Last synced: 25 days ago
JSON representation
Draw on cairo surfaces using SVG path syntax, with compile-time parsing and conversion.
- Host: GitHub
- URL: https://github.com/meithecatte/cairo-svgpath
- Owner: meithecatte
- Created: 2019-02-03T22:33:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-04T17:05:14.000Z (almost 6 years ago)
- Last Synced: 2024-11-15T00:49:40.496Z (about 1 month ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cairo-svgpath
Draw on cairo surfaces using SVG path syntax, with compile-time parsing and conversion.
```rust
use cairo_svgpath::svgpath;fn before(ctx: &cairo::Context) {
ctx.move_to(1, 2);
ctx.line_to(3, 4);
ctx.curve_to(5, 6, 7, 8, 9, 10);
}fn after(ctx: &cairo::Context) {
svgpath!(ctx, "M1 2L3 4C5 6 7 8 9 10");
}
```