I’m looking for a way to create a logic color drawing like fill tool in photoshop or gimp or event paint…
Here is basically what I want to implement :
—> 
Any suggestion on how to do that ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sounds/looks like you just need to implement a flood fill algorithm. There a few variations, from simple 4-direction to more complex 8-direction, though all work on a similar principle and are fairly easy to implement.
Here’s a link to a GameDev.SE post that may be a good place to start and perhaps even a better place to post this question!