wizdraw - Portable crate to fill and stroke composite bezier curves (paths)
All operations are done on an offscreen canvas.
The CPU implementation is always available and performs OK.
Limitations
- Pixels are [R, G, B, A] values with 8-bit components
- Point coordinates are pairs of
f32 - The GLES2 implementation's output is currently only readable as RGBA5551
Features
simd: include the SIMD canvas implementationgles2: include the OpenGL ES 2.0 canvas implementationcontour: include path stroking codeshapes: include basic shape generation code
By default, this crate doesn't use SIMD because a nightly toolchain is required for that.
Example
let myrtle = new;
let texture = SolidColor;
let oval = ;
let mut canvas = new;
canvas.fill_cbc;
// retrieve a framebuffer
let pixels = canvas.pixels;
Demo: PNG output
Check out the cpu example to generate this image:
