Crates.io | bufro |
lib.rs | bufro |
version | 0.2.10 |
source | src |
created_at | 2021-05-11 21:03:20.613045 |
updated_at | 2021-11-28 19:02:27.322 |
description | 2D vector graphics with C and Rust API |
homepage | |
repository | https://github.com/UE2020/bufro |
max_upload_size | |
id | 396310 |
size | 1,722,820 |
A vector graphics renderer using wgpu with a Rust & C API.
A Rust example can be found in examples/quickstart.rs (using winit).
A C example can be found in c_examples/quickstart.c (using glfw). Build the C examples by running make <example>
in the c_examples folder.
Transformations (e.g. ctx.rotate)
Rectangle fill
Circle fill
Blending
Strokes
Text rendering (stroke & fill)
Effects (glow & shadows)
Gradients
Rounded rectangles and polygons
Use Lyon for tesselation
Custom shader language
Web API (using wasm-bindgen)
$ make # Build the dynamic library and generate the C header
% make install # Install the header and library system-wide
Note that $ indicates a regular user shell, while % denotes a root shell.