Struct exoquant::ditherer::FloydSteinberg [] [src]

pub struct FloydSteinberg(_, _, _, _, _);

A few variants of a Floyd-Steinberg ditherer.

Methods

impl FloydSteinberg
[src]

Returns a floyd-steinberg variant that reduces color bleeding.

Returns a vanilla floyd-steinberg ditherer as originally described.

Returns a modified floyd-steinber ditherer slightly favoring checker board patterns.

The resulting dithering looks a little less like random noise. Don't use for images that are later down-scaled, as that will risk moire artifacts.

Trait Implementations

impl Ditherer for FloydSteinberg
[src]

Remaps an iterator of input pixel (float-)colors of an Image to an Iterator of palette indices. Read more