raqote
A pure Rust 2D Graphics Library.
Raqote aims to be a small, simple, fast software 2D graphics library with roughly the same capabilities as the cairo image backend.
Current functionality
- path filling
- stroking
- dashing
- image, solid, and gradient fills
- rectangular and path clipping
- blend modes
- layers
- repeat modes for images
- global alpha
Planned functionality
- perspective image drawing
- shadows?
resvg supports using raqote as a backend.
Example:
use *;
let mut dt = new;
let mut pb = new;
pb.move_to;
pb.cubic_to;
pb.quad_to;
pb.quad_to;
pb.close;
let path = pb.finish;
let gradient = new_radial_gradient;
dt.fill;
let mut pb = new;
pb.move_to;
pb.line_to;
pb.line_to;
let path = pb.finish;
dt.stroke;
dt.write_png;
Produces: