Jump to content
  • Advertisement


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


Manual Paint/Floodfill? Help... :)

This topic is 6826 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

how would you manually do a floodfill on a video buffer or the screen? i have an idea that a recursive solution is appropriate, but i can''t really think of how to do it... i probably could, given time to worry about it and much fewer other things, but this isn''t something i want to re-invent... thanks. btw, i was hoping that it would be able to fill a circle or some weird shape w/o going out of bounds... Know what i mean? ... gotta go.

Share this post

Link to post
Share on other sites
its kindda stupid to use a recursive flood fill
you better try some scanline algos they are good both for rectangle forms and for circles and coded wisely are very fast, too, as they are integer usually.
there should be lots of code about these algos -
try the flipcode.com or programmersheaven
you could try http://come.to/faces, too - its my site, but not much finished

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!