Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Pere Pujal i Carabantes <perepujal@gm...> - 2012-04-12 08:13:10
This morning my child (10YO) was drawing something for the school and
asked me why "Fill" doesn't fills all he wanted.
The problem was that he drawed the outline of a tshirt with a
smooth(fuzzy) brush, then tried to fill the inside with the same color.
The result is that the inside is filled but there is a gap at the inside
edge of the outline that is not filled
I had to explain him that in the edge of the outline there are colors
merged from the background to the line color and that "Fill" only fills
things having the same color.
So how can we work around this? Ideas?
Simply adding some fuzziness to the color detection algoritm in
magic/src/fill.c would fix it, but at the cost of having the colors
escaping from the container in some other cases.
From: Bill Kendrick <nbs@so...> - 2012-04-18 19:00:27
On Thu, Apr 12, 2012 at 10:14:31AM +0200, Pere Pujal i Carabantes wrote:
> Simply adding some fuzziness to the color detection algoritm in
> magic/src/fill.c would fix it, but at the cost of having the colors
> escaping from the container in some other cases.
See colors_close() function in magic/src/fill.c :)
If you can find ways to improve it, I'd love to take a peek!