I am a digtial artist since 1976 and I started a recode project on my old art using Processing. My works are computer minimal art so very simple, just white lines on a black screen. The lines are mostly generated by random. You see more at
http://recodeart.wordpress.com
In the late 80s I started to fill these structures by color using the language BASIC. In this language it was simple to do so.
Is there a function in Processing where I can easily fill the black areas that are enclosed by the white lines I generated with a different color, lets call it a "flooding" color? It is easy to understand what I need by looking at a paint program. To "fill" an area with a paint programm you just click with your mouse somewhere on a black area and use the "fill tool" (with tolerance zero in my case). In this little picture you see what I need.
As the white lines are already done by my program I need something that comes later on and fills what is already there with green, blue, red ... or whatever. Just white (the border lines, the structure of the old art) stays (and normally after the filling is completed I fill with black "from the outside" so it looks like before: art on black screen).
Thank you much!
*) If you look sharp one tiny area "inside" is still black. It would be a way for a code to check not each 3rd pixel as I described, but to use a parameter "after how many dots a check shall be performed", so if this is lets say 15 pixel (in x and y) some tiny areas will still be black.