Jump to content

[SOLVED] How to program a fill bucket?


MrFish

Recommended Posts

color_fill.pngLike a fill tool in paint or photoshop. I'm working on a program where you create maps for a game with the provided tiles. However, I'm having trouble thinking of a working fill algorithm.fillbucket.pngThis is obviously a 2D array so you can think of it in that way. Any help is much appreciated! This is a real head scratcher for me.Algorithm here: http://en.wikipedia.org/wiki/Flood_fill
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...