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
Planned functionality
- layers
- blend modes
- perspective image drawing
- shadows?
Example:
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 = RadialGradient;
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: