Module rurtle::floodfill [] [src]

[]

Floodfilling for Turtle graphics.

Algorithm

First, the image is rasterized and a normal floodfill is performed on the resulting image. Then the colored "blob" is saved and copied onto the turtle window

Functions

floodfill

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.