gotcha

Author Topic: Help with fill bucket colour  (Read 2484 times)

September 11, 2017, 02:24:41 PM
Read 2484 times

cmbdii

  • Newbie

  • Offline
  • *

  • 1
I have an image in attachment, I'm trying to colour the white bits different colours but when I click the bucket fill icon and then click on the part I'd like to fill it just goes gray even if I have the stroke and fill set to my desired colour? I've tried googling and other things. Thanks
  • Inkscape version 0.92.2
  • Windows 7

September 11, 2017, 04:22:46 PM
Reply #1

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hi.

Instead of the bucket tool, break path apart (Ctrl+Shift+K), remove the "filled background" from the selection and combine (Ctrl+K) the rest together.


September 11, 2017, 07:24:52 PM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

I'm not clear why Lazur suggests that.  Wouldn't you end up with just what's already there?

Oh hey, it's an animation!  If you click on the attachment, you'll see it's like a video (except is an animated GIF)!  (I'm not sure if it has to be embedded in the message, to play like a video, maybe?)

Unfortunately, I can't tell what's happening.  If I watch the mouse, I miss the key.  If I watch the key window, I miss what the mouse is doing.  I see you had the Tweak tool for a minute, but for the rest, I was lost.

I do have the impression cmbdii wants to put a different color in each space, though.

There are a couple of ways to approach this, and I guess it depends on your goals, which way you go.  I would probably use Paint Bucket tool myself.

But when you say it goes gray -- what goes gray?  If you mean the space that you want to fill goes gray, that's fine.  Now just change it to the color you want.  If you mean the green part goes gray, then you probably didn't click over the empty space.  If it's something else, please explain more.

Tips for the Paint Bucket tool:

 -- Zoom so that the space you want to fill, almost fills the window.  If the space you want to fill is larger than the window, it might not all be filled.  And if the space is too small, it's hard to click in the open space.

 -- Use the Grow/Shrink setting on the contol bar.  This tool works best when the space you want to fill is zoomed to fit the window.  But it still leaves a little gap between the fill path and the edge of the space.  If the space is smaller than the window, that gap is larger.  In any case, you can use Grow/Shrink to help fill the gap.

I say "help" fill the gap, because if you need the fill path and the edge of the space to meet precisely, you'll need to do a lot of manual tweaking of nodes and node handles.  But if having some underlap is ok, then I usually set the Grow to about 5.  That will make sure that the whole space is filled.  Then I simply move it behind the large object.  As long as the larger object doesn't have any transparency, or you aren't going to use a filter on it, that works very well.

At the end, select everything and group it together.  That will make it move all at once, and you won't accidentally lose parts

  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

September 12, 2017, 01:46:38 AM
Reply #3

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Was switching to the tweak tool to tweak the fil colours -then realised the settings were cut off screen so moved on without it.

Why would you use the bucket tool when it would create (bad) "copies" of paths already existing as subpaths of the one in the drawing.
Also the shown approach eliminates the rendering gap issue.

Ctrl+Shift+K, and Ctrl+K are the keys. Deselectig and raising objects to top with Home makes it happen within seconds.

September 12, 2017, 04:39:06 AM
Reply #4

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Because when you break it apart, everything is the same color, and it's near to impossible to find all those individual little objects, to change their color.  The Paint Bucket tool is just faster, in this case.

Also, it depends on your goals for the drawing.  Certainly if you were going to use the SVG on a webpage, or share it with other people, you'd probably want it to have more of a polished and professional appearance.  Or if you're going to send this to a cutter, definitely, use the existing sub-paths. 

But if I just need a PNG export, who the heck cares how it's made.  The underlap I suggested will also eliminate the rendering gap.

I really see this as a use case for the Paint Bucket tool - kind of what it was made for (among other things too).

  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann