I've been developing a glorified drawing tool for a client,
and among their New Year amends is that they want to have any
'unattached spaces filled'.
Essentially what the site does is allow a user to draw, and
the lines/curves created are then used to create an inverse mask.
So far so good.
Obviously the user can draw where ever they like, but the
client doesn't want them to be able to leave chunks of unfilled
The problem isn't really a code problem. It's more a client
I think I need a script that will search through all pixels,
and color fill any that are not coloured BUT are surrounded on all
sides by color.