1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
pub use color::PColor;
use image::RgbImage;

mod color;
mod finder;
mod sorter;

pub fn sort(buf: &mut RgbImage, black: &PColor) {
    for col in 0..buf.width() {
        sorter::sort_column(buf, col, black);
    }

    for row in 0..buf.height() {
        sorter::sort_row(buf, row, black);
    }
}