Function rurtle::floodfill::floodfill [] [src]

pub fn floodfill(img: &DynamicImage, start: (u32, u32), color: (u8, u8, u8, u8)) -> (u32, u32, DynamicImage)

Floodfill the given image, starting at the given source point and coloring everything to color. Returns a Patch that contains the given colorized blob with a transparent background. Also returns the (x, y) coordinates of the upper left corner of the patch rectangle.