Sfairadora

  • Reference Guide

flood_fill

var_bmp <- flood_fill(x, y, color, fill)
var_bmp <- flood_fill(x, y, color, fill, mode)
The var_bmp parameter is an l-value referring to a variable of the type Bitmap. The function fills a closed area in the bitmap.

Parameters

var_bmp
An l-value of the type Bitmap to which the function draws.
x, y
The coordinates if the point from where the area is to be filled.
color
The color (the type Color) determining the boundaries of the area to be filled. The exact interpretation of this parameter depends on the parameter mode.
fill
The fill of the area.
mode
A parameter of the type Bool. If it is set to TRUE or not specified, the parameter color specifies the color of the boundaries at which to stop filling. When it is FALSE, the parameter color specifies the color of the area to be filled.

Return Value

The return value is an l-value referring to the modified bitmap.