Jump to content

[SOLVED] How to program a fill bucket?


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 Edited by MrFish
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...