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§
- handling of color modes & RGB.
- Logic for dithering a loaded, preprocessed Img. See tanner helland’s excellent writeup on dithering algorithms for details.
- Re-exports of the most common traits and types.
Enums§
- Handling of runtime errors in main.
Functions§
- clamp a f64 to the closest u8, rounding non-integers.
- quantize to n bits. See the bit_depth option.
Type Aliases§
- Result type for Error