3 releases

0.1.2 Oct 8, 2024
0.1.1 Oct 8, 2024
0.1.0 Aug 13, 2024

#493 in Images

25 downloads per month

MIT license

7KB
129 lines

This is a simple dithering library

Usage

pub fn main(){
let image: DynamicImage = todo!();
let dithered_image = DitherBuilder::new(image)
    .highlights(Rgb([255;3]))
    .shadows(Rgb([0;3]))
    .resize(Resize::Scale(0.5))
    .generate();
}

Dependencies

~4.5MB
~86K SLoC