[][src]Crate dither

Modules

color

handling of color modes & color::rgb::RGB.

ditherer

Logic for dithering a loaded, preprocessed Img. See the wikipedia article or 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.

exec

run dither using the provided options.

Type Definitions

Result

Result type for self::Error