Expand description
§Dither
§Written by Efron Licht. Available under the MIT license. Hire me!
Inspired by: http://www.tannerhelland.com/4660/dithering-eleven-algorithms-source-code/ and the game “Return of the Obra Dinn”
Modules§
- color
- handling of color modes & RGB.
- ditherer
- Logic for dithering a loaded, preprocessed Img. See tanner helland’s excellent writeup on dithering algorithms for details.
- prelude
- Re-exports of the most common traits and types.
Enums§
- Error
- Handling of runtime errors in main.
Functions§
- clamp_
f64_ to_ u8 - clamp a f64 to the closest u8, rounding non-integers.
- create_
quantize_ n_ bits_ func - quantize to n bits. See the bit_depth option.