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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...