SFML community forums
Help => General => Topic started by: Gregory on January 05, 2010, 04:16:24 am
-
I'm making a paint program, called "simple paint", but I have a vague idea of how to make the paint bucket. Any ideas?
-
Find the color of the pixel that is clicked with the paint bucket, then for every pixel surrounding it that is the same color, change the color to the new color, and do that for all pixels surrounding those, and so on. By "surrounding", I mean directly to the left, right, top, or bottom of the pixel. No diagonals.
-
Can I use a list of pixels that color, and I got this list ouver adjacent pixels with this color put it in the list