Again, using perlin noise, we can create a simple method to fill a bitmap. The base, is to draw a bitmap with perlin noise, and then apply a threshold with a dynamic limit. If our threshold limit is growing, the result of the threshold, will simulate a filling effect.


source

> 0

> 64

> 128

> 192

> 256

Click here to see the demo ( Requieres Flash )

This looks very simple and boring, but if we use the filled area as a mask, and the border, as a fire source for our fire class, the results look quite nice.

Click here to see the demo ( Requieres Flash )


Download: ActionScript AreaFill class