Fast contour fill algorithm?

BlitzPlus Forums/BlitzPlus Programming/Fast contour fill algorithm?

Hi everyone,

Does anyone know a fast algorithm for filling in a bounded area of a screen in a given colour? I've tried writing two different recursive algorithms, but the first one caused a stack overflow error, and the second one was painfully slow.

Many thanks,

Ryan Moody

P.S. I'm actually using Blitz2D, not BlitzPlus.