Articles Archive
Director Forums
Director Wiki
Job Board
Search
 
 Director Online WikiMain Page | About | Help | FAQ | Special pages | Log in | Printable version | Disclaimers

FloodFill

From Director Online Wiki

Table of contents

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] (http://www.macromedia.com/devnet/director/articles/imaging_lingo_06.html)
Demo of floodfill with an image [2] (http://nonlinear.openspark.com/tips/imaging/floodfill/)

Retrieved from "http://www.director-online.com/dougwiki/index.php/FloodFill"

This page has been accessed 1371 times. This page was last modified 14:19, 16 Mar 2006.