FloodFill

From Director Online Wiki
Jump to: navigation, search

Description

Undocumented, image method.
implemented since DIR 8.5 (?)
Floodfills an image, starting from passed point with passed color.
much faster than doing it with setPixel(),...

Params

point startPoint | int x, int y rgb|color color

Example

tImg = image(100,100,32)

tImg.floodFill( 10, 10, rgb(255,0,0) )
tImg.floodFill( point(10,10), rgb(255,0,0) )
tImg.floodFill( point(10,10), color(255,0,0) )

See also

Macromedia Devnet article[1]
Demo of floodfill with an image [2]