Function exoquant::sort_palette
[−]
[src]
pub fn sort_palette(
palette: &Vec<Color>,
image: &Vec<u8>
) -> (Vec<Color>, Vec<u8>)
Sort neighboring colors in the image to be neighbors in the palette as well.
Fairly silly and useless, but makes the palette (especially of ordered dithered images) look a lot more tidy.