dither
pub fn create_quantize_n_bits_func( n: u8) -> Result<impl FnMut(f64) -> (f64, f64)>
quantize to n bits