footile
A 2D vector graphics library written in Rust.
Goals
- API simplicity and ergonomics
- Features comparable to other 2D graphics (Cairo, Skia, SVG)
- Anti-aliased rendering
- Image rendering for web servers
- (Someday) GPU acceleration (hopefully using SPIR-V as rust compile target!)
- Have fun!
Example
use ;
let fish = new.relative.pen_width
.move_to
.line_to
.cubic_to
.line_to
.line_to
.close.build;
let mut p = new;
let mut r = new;
r.over;
r.over;
r.write_png?;