From 7f90e6e9997d677754c1a75827668fad79355258 Mon Sep 17 00:00:00 2001 From: nworbnhoj Date: Sat, 4 Jun 2022 17:01:43 +1000 Subject: [PATCH] change dithering algorithm to BURKES --- services/gam/src/bitmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/gam/src/bitmap.rs b/services/gam/src/bitmap.rs index 4767f4d5e..5ee485175 100644 --- a/services/gam/src/bitmap.rs +++ b/services/gam/src/bitmap.rs @@ -242,7 +242,7 @@ impl From>> for Bitmap { let bit_depth = 1; let quantize = dither::create_quantize_n_bits_func(bit_depth).unwrap(); let bw_img = img.convert_with(|rgb| rgb.to_chroma_corrected_black_and_white()); - let ditherer = dither::ditherer::FLOYD_STEINBERG; + let ditherer = dither::ditherer::BURKES; let output_img = ditherer.dither(bw_img, quantize); let bm_width: usize = output_img.width().try_into().unwrap();