cairo-blur

Crates.iocairo-blur
lib.rscairo-blur
version0.1.1
sourcesrc
created_at2023-08-07 12:06:43.668442
updated_at2023-08-08 22:53:02.295134
descriptionApply a Gaussian blur to your Cairo image surface
homepage
repositoryhttps://github.com/MoAlyousef/cairo-blur
max_upload_size
id937886
size7,545
Mohammed Alyousef (MoAlyousef)

documentation

https://docs.rs/cairo-blur

README

cairo-blur

Apply a Gaussian blur to your Cairo ImageSurface.

let radius = 15;
let mut surf = cairo::ImageSurface::create(Format::ARgb32, 200, 100).expect("Couldn’t create surface");
cairo_blur::blur_image_surface(&mut surf, radius);

The code in this crate is a translation of the code here: https://www.cairographics.org/cookbook/blur.c/

Commit count: 3

cargo fmt