title: Flood Fill Algorithms
body: <p>Its the weekend again, and that means I get to play with my <a href="https://stackoverflow.com/questions/332585/2d-platformer-physics">hobby project</a>.</p>
  
  <p>I've gotten tired of creating test levels by hand, so I thought I'd take a break from engine development and work on a level editor:</p>
  
  <p><a href="http://gfilter.net/junk/Editor.JPG" rel="nofollow noreferrer">Level Editor http://gfilter.net/junk/Editor.JPG</a></p>
  
  <p>I'd like to implement a flood fill algorithm in the editor, which would work just like in a paint program. Does anyone have any pointers on what technique would work good for me here?</p>
  
  <p>The level is just a 2d array, so it could be considered the same as a bitmap really.</p>
  
  <p>Thanks!</p>