Re: C Bucket fill

12 views
Skip to first unread message

Mihai Sucan

unread,
May 23, 2011, 6:12:41 AM5/23/11
to john oswald, pain...@googlegroups.com
Hello John!

Thank you for your email and appreciation of the project.


Le Mon, 23 May 2011 07:20:33 +0300, john oswald <johno...@gmail.com> a
écrit:

> Hi Mihai,
>
> Paintweb is excellent - really well done and thanks.
>
> The C Bucket tool nicely fills a constrained area over a plain coloured
> background image (plan_view.jpg), or where the background is transparent.
>
> However, when the background image is complex (like the default image in
> the
> demo), C Bucket does not fill the constrained area.
>
> The attached png file shows this behaviour.
>
> Can you suggest how i might mod the scripts to apply a fill using the c
> bucket tool, over complex images.

You can change the color bucket source code, change the algorithm how you
want. The color bucket source code is in the cbucket.js file:

http://code.google.com/p/paintweb/source/browse/src/tools/cbucket.js

Best of luck!

Mihai

--
Mihai Sucan
http://www.robodesign.ro

Reply all
Reply to author
Forward
0 new messages