Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ue2020/bufro
A vector graphics renderer using wgpu with a Rust & C API.
https://github.com/ue2020/bufro
canvas gpu graphics opengl rust
Last synced: 3 months ago
JSON representation
A vector graphics renderer using wgpu with a Rust & C API.
- Host: GitHub
- URL: https://github.com/ue2020/bufro
- Owner: UE2020
- License: gpl-3.0
- Created: 2021-05-09T14:20:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-26T16:39:07.000Z (about 3 years ago)
- Last Synced: 2024-10-31T11:36:25.458Z (3 months ago)
- Topics: canvas, gpu, graphics, opengl, rust
- Language: Rust
- Homepage:
- Size: 1.72 MB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bufro
[![crates.io](https://img.shields.io/crates/v/bufro.svg)](https://crates.io/crates/bufro)
[![Documentation](https://docs.rs/bufro/badge.svg)](https://docs.rs/bufro)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 ` in the c_examples folder.## Roadmap
- [x] Transformations (e.g. ctx.rotate)
- [x] Rectangle fill
- [x] Circle fill
- [x] Blending
- [X] Strokes
- [X] Text rendering (stroke & fill)
- [ ] Effects (glow & shadows)
- [ ] Gradients
- [X] Rounded rectangles and polygons
- [ ] Use Lyon for tesselation
- [ ] Custom shader language
- [X] Web API (using wasm-bindgen)## Demo
![Gif showing bufro in action](https://raw.githubusercontent.com/UE2020/bufro/main/demo.gif)
## Build & Install (C)
```sh
$ 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.*