| Crates.io | rough_vello |
| lib.rs | rough_vello |
| version | 0.13.0 |
| created_at | 2025-08-12 12:07:34.745229+00 |
| updated_at | 2025-08-29 20:11:31.476488+00 |
| description | Draw Hand Sketched 2D Drawings Using Vello |
| homepage | https://github.com/orhanbalci |
| repository | https://github.com/orhanbalci/rough-rs.git |
| max_upload_size | |
| id | 1791882 |
| size | 390,742 |
This crate is an adapter crate between roughr and vello crates. Converts from roughr drawing primitives to vello's Scene types. Also has convenience traits for drawing onto vello scenes. For more detailed information you can check roughr crate.
Below examples are output of rough_vello adapter.
[dependencies]
rough_vello = "0.1"
use rough_vello::VelloGenerator;
use vello::Scene;
use palette::Srgba;
use roughr::core::{FillStyle, OptionsBuilder};
let options = OptionsBuilder::default()
.stroke(Srgba::from_components((114u8, 87u8, 82u8, 255u8)).into_format())
.fill(Srgba::from_components((254u8, 246u8, 201u8, 255)).into_format())
.fill_style(FillStyle::Hachure)
.fill_weight(1.0)
.bowing(0.8)
.build()
.unwrap();
let generator = VelloGenerator::new(options);
let rust_logo_svg_path = "..."; // SVG path data for the Rust logo
let rust_logo_drawing = generator.path::<f32>(rust_logo_svg_path);
let mut scene = Scene::new();
rust_logo_drawing.draw(&mut scene);

For more examples have a look at the examples folder.
For Bevy game engine integration, you can use bevy_vello which provides a Bevy plugin for vello. This allows you to render rough_vello drawings directly in your Bevy applications by converting the vello Scene to Bevy-compatible rendering.
[dependencies]
rough_vello = "0.1"
bevy_vello = "0.1" # Check latest version
bevy = "0.14" # Or latest compatible version
Licensed under MIT License (LICENSE).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the MIT license, shall be licensed as above, without any additional terms or conditions.