Using the Flood Fill Tool

 
 
 

The Flood Fill tool fills the pixels that you click, and neighboring pixels of similar color, with the specified foreground color. Neighboring pixels are only filled if their values fall within the flood fill's Tolerance range (see Editing Flood Fills/Magic Wand Selections).

   

Original click location

Resulting Fill

When you click a given pixel, it is filled and its neighbors are evaluated to see if they fall within the Tolerance range. Pixels falling within the range are filled and their neighbors are, in turn, evaluated to see if they fall within the Tolerance range. This continues until none of the evaluated pixels fall within the Tolerance range.

To apply a flood fill

  1. Edit the paint operator whose pixels you want to fill, as described in Editing and Previewing Paint Operators.

  2. Choose a color for the fill as described in Choosing Colors with the Fx Color Selector. Flood filling uses the foreground color.

  3. Set the Flood Fill tool properties as described in the following section, Editing Flood Fills/Magic Wand Selections.

  4. From the Paint menu in the Fx viewer, choose Draw Flood Fill Tool.

    Alternatively, you can position the mouse pointer over the Fx viewer and press U.

  5. In the Fx Viewer, click a pixel of the color that you want to fill.

    The pixel that you click, and any adjacent pixels whose color values are within the flood fill's Tolerance range, are filled with the foreground color.

    TipTo confine the flood fill to a specific region of the image, use the stencil to temporarily define the boundaries of the paintable area. For more information about using stencils, see Viewing the Paint Selection Mask.

Setting the Flood Fill/Magic Wand Properties

The Flood Fill/Magic Wand page of the Paint Tool Settings property editor is where you define how the Flood Fill tool fills pixels and how The Magic-Wand stencil tool selects them.

NoteThe Magic Wand stencil tool is to selection what the Flood Fill tool is to painting. It selects regions of the image using the exact same settings that the Flood Fill tool uses to fill them.

For more information about the Magic wand tool, and stencil tools in general, see Viewing the Paint Selection Mask.

If you are applying a flood fill to a raster paint clip, you must set the Flood Fill tool's properties before applying the fill because you won't be able to change it after it's applied. This is helpful, but not necessary, in vector paint operators since you can edit each fill after you apply it, as described in Painting with Color Shapes.

To set the flood fill/magic wand properties

  1. From the Fx viewer paint menu, choose Tools Paint Tool Settings to open the Paint Tool Settings property editor.

    Alternatively, you can position the mouse pointer over the Fx viewer and press 3.

  2. On the Flood Fill/Magic Wand page, choose a fill Mode to specify the method for determining which pixels are filled/selected. Two modes are available:

    • RGB: neighboring pixels are filled/selected if their RGB values match those of the clicked pixel. Set the Tolerance value to define how closely a neighboring pixel's RGB values must match those of the clicked pixel before the pixel is filled/selected.

      A value of 0 means that only pixels that match the clicked pixel exactly are filled/selected. Raising the Tolerance value broadens the range of "matching" RGB values such that pixels with increasingly dissimilar RGB values are filled/selected. Setting the value to 100 fills/selects the entire image.

    • HSV: neighboring pixels are filled/selected if their Hue, Saturation, and/or Value values match those of the clicked pixel. Adjust the Hue, Saturation, and/or Value settings to define how closely a neighboring pixel's values must match those of the clicked pixel before the pixel is filled/selected.

      As with the RGB mode's Tolerance setting, the lower the values, the more closely a pixel must match the selected pixel's Hue, Saturation, and/or Value value before it is filled/selected.

  3. Activate the Anti Alias option to soften the edges of the filled/selected area. The fill/selection falls off at the edges over a distance defined by the Tolerance setting.

       

    Anti Alias=off

    Anti Alias=on

  4. Adjust the Feather setting to blur the edge of the filled/selected area. The higher the value, the larger the blurred area.

       

    Feather=0

    Feather=15

Editing Flood Fills/Magic Wand Selections

Each time you use the Flood Fill tool in a vector paint operator, a Flood Fill shape is created at the click location. Similarly each time you use the Magic Wand tool in any paint operator, a Magic Wand shape is created at the click location. In either case, editing the shape opens a property editor from which you can alter the fill/selection after you've applied it.

In the Fx viewer, the center of the shape's control object corresponds to the clicked pixel. You can translate the control object to apply the fill to/select a different pixel. The new pixel's neighbors are also filled, according to the fill's Tolerance setting.

To edit a Flood Fill / Magic Wand shape's properties

  1. Edit the vector paint operator whose Flood Fill or Magic Wand shape you wish to edit, as described in Editing and Previewing Paint Operators.

  2. In the Fx Viewer, activate the Select Shape tool (press Space), select the Flood Fill or Magic Wand object and press Enter.

    The FloodFill or Magic Wand property editor opens and the shape's control object is highlighted in the Fx Viewer.

  3. From the Flood Fill or Magic Wand tab of the property editor, adjust the fill/selection properties as necessary. These are the same properties described, Editing Flood Fills/Magic Wand Selections, but they are applied retroactively.

  4. You can also set additional properties, depending on whether you're editing a Flood Fill Shape or a Magic Wand shape.

    • If you are adjusting a Flood Fill shape, you can adjust the fill's Fill Color and Opacity settings to change the color and opacity of the fill respectively.

    • If you are adjusting a Magic Wand shape, you can set the selection Action, which controls whether the Magic Wand selection added to existing selections, removed from existing selections, and so on. See Overview of Editing Shapes for details.

To translate a Flood Fill / Magic Wand shape in the Fx viewer

  • Do one of the following:

    • Edit the shape's properties, as described in the previous procedure and, from the Transform tab of the Flood Fill or Magic Wand property editor, adjust the X and Y values to translate the fill shape horizontally and vertically.

      or

    • Drag the shape's control object to a new location in the Fx Viewer.

    As soon as you change the shape's position, the fill/selection is applied to the new pixel and its neighbors.

   

Shown here is the original flood fill location.

Moving the flood fill shape to a different location applies the fill to different pixels (in this case, a greater range).

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License