https://github.com/aslpavel/rasterize
Simple and small rust 2D rendering library
https://github.com/aslpavel/rasterize
2d rasterizer
Last synced: 2 months ago
JSON representation
Simple and small rust 2D rendering library
- Host: GitHub
- URL: https://github.com/aslpavel/rasterize
- Owner: aslpavel
- License: mit
- Created: 2021-03-19T18:42:16.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-09-23T10:11:20.000Z (9 months ago)
- Last Synced: 2026-01-02T10:59:36.763Z (5 months ago)
- Topics: 2d, rasterizer
- Language: Rust
- Homepage:
- Size: 2.06 MB
- Stars: 14
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rasterizer

[](LICENSE)
[](https://crates.io/crates/rasterize)
[](https://docs.rs/rasterize)
This is a fully functional 2D rasterizer and SVG path parser.
### Features:
- parsing SVG path format
- rendering elliptic arc, lines, cubic/quadratic bezier curves
- curve offsetting
- linear and radial gradients
### Usage example
There is a very simple binary in examples folder that can be used to render SVG path
```
$ cargo run --release --example rasterize -- data/squirrel.path -w 512 -o squirrel.bmp
```
This will produce:
