FloodFill(id, x, y, bordercolor, color)
idwith a color. You need to pass a starting position in the
FloodFill()will then start out in all directions replacing all pixels with the specified color until it reaches the border color which you also have to specify. The starting position is usually an arbitrary point within the bounded area.
CreateBrush(1, 241, 201) SelectBrush(1) SetFillStyle(#FILLNONE) Ellipse(0, 0, 120, 100, #RED) EndSelect FloodFill(1, 120, 100, #RED, #WHITE) DisplayBrush(1, 0, 0)Creates a red ellipse outline and then fills it with the color white using the
FloodFill()command starting from the center of the ellipse in all directions.