Skip to content

menu Image FloodFill

menu Image FloodFill {name} {x} {y} {colour}

Also searchable as: menu Image FloodFill · paint bucket · fill

menu Image FloodFill works like the paint bucket of a drawing program: starting at x, y, it fills the connected area that has the same colour as that pixel with the new colour. Positions are inside the image, 0, 0 being its top-left corner.

A colour, see Colours: a name such as red or btnface, or a $BBGGRR number. $FEEEED is the transparent colour of images: painting with it makes those pixels see-through.

menu Clear
menu Window Size 84 84
menu Image Create pic 10 10 64 64
menu Image Ellipse pic 8 8 56 56 black #false
menu Image FloodFill pic 32 32 green ; fill the inside of the circle
menu Show
halt

See also

Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.