Ask coding questions

← Back to all posts
Non-Recursive Filling Algorithms?

Hey all,

I think I might want to try to make a small paint program in BASIC. One of the features I want to implement is the paint-bucket tool. Now, normally I'd use flood fill for this, but I don't have access to native stacks or function calls.

I've already got a slight implementation of stacks going on, but I'd like to know if anyone knows of any non-recursive filling algorithms that doesn't require a stack/queue either.