Bucket Fill Tool
Shortcut: G
The Bucket Fill (flood fill) tool fills connected areas of similar color with the current color. It's essential for quickly coloring large areas and flat-filling shapes.
Basic Usage
Select the Bucket tool by pressing G or clicking the bucket icon. Click on any area of the canvas to fill all connected pixels of the same color with your primary color. Right-click fills with the secondary color.
The tool options row holds, in order: Ink, Contiguous, Tolerance, Close Gap and Pattern.
Fill Modes
Contiguous Fill (Default)
Fills only connected pixels of the same color. The fill stops at pixels of different colors, creating boundaries. This is the most common mode for coloring enclosed areas.
Non-Contiguous Fill
Fills all pixels of the target color on the current layer, regardless of whether they're connected. Useful for changing all instances of a color at once.
Toggle between modes with the Contiguous checkbox in the tool options row, or tap Shift to flip Contiguous for good. Hold the key instead and the mode flips only while it's held, springing back the moment you release, so you can borrow the other mode for a single fill. While the Bucket is already active, pressing G or clicking its icon again also flips Contiguous.
Tolerance
Adjust how closely colors must match the target color with the Tolerance field (0-255) in the tool options row. Type a value or drag across the field.
- 0: exact color match only (the default)
- Higher values: also fill similar but not identical colors
Close Gap
In contiguous mode the tool options also offer Close Gap (0–5 px). It seals gaps in your line art up to that many pixels wide before the fill runs, so a leaky outline stays contained without you having to hunt down the hole. It is 0 by default, and the control is hidden in non-contiguous mode, where there is nothing to leak through.
Pattern Fill
The Pattern dropdown fills with a pattern instead of a solid color. It lists Solid (the default), the eight dither patterns and your custom brushes. The Bucket keeps its own pattern choice: the Dither tool never changes it.
Dither Patterns
Checker, 2×2, 4×4 (coarse), 8×8 (fine), Noise, H-Lines, V-Lines and Diagonal lay the fill color down in that pattern, and the gaps keep whatever was there before. How dense the pattern is follows the Dither tool's Ratio. The button shows the pattern's preview and name.
Custom Brush Patterns
Pick a custom brush and the fill tiles it across the region on a grid pinned to the canvas, so neighbouring fills line up. A Stamp / Brush switch appears next to the dropdown:
- Stamp: tile the brush in its own colors
- Brush: tile the brush's shape in the current color
The Bucket and the Brush share the active custom brush: picking one here also arms it on the Brush, and a custom brush armed on the Brush makes the Bucket fill with it until you pick Solid. Pattern fills work in both contiguous and non-contiguous mode.
Fill Preview
The Bucket can show what a click would fill while you hover, before you press anything. It is off by default. Turn it on with the Bucket Fill switch under Per-Tool Settings in Edit → User Preferences… → Editor Behavior → Live Preview (Live Preview itself must be on too). Fill Tool Preview in the Cursor section of the same dialog sets how it looks: Edges Only (the default) outlines the region, Full Preview paints it in the fill color, and None hides it. The preview follows Contiguous, Tolerance and Close Gap, so you can tune them against the real result.
Ink Modes
The Ink dropdown works on fills as it does on the Brush. Lock Alpha recolors only pixels that are already there, and Shading shifts the filled pixels one step along the shading ramp instead of painting. See Ink Modes.
How Flood Fill Works
The bucket tool uses a flood fill algorithm that starts from your click point and spreads outward, filling pixels that match the original clicked color. It considers:
- 4-way connectivity: fills spread up, down, left and right, never through a diagonal gap
- Color matching: only identical colors are filled by default
- Layer boundaries: a fill never crosses from one layer to another; it reads and writes the cel it lands on
- Tile mode: a contiguous fill follows its region across the edge of the tile
- Symmetry: with symmetry on, the fill also starts from every mirrored point
Filling Several Cels
A fill lands on the active layer's cel. With several cels picked in the timeline, or several layers in the Layers panel, turn on Select → Paint Across Selection ( Alt+P ) and one click fills every one of them as a single undo step, each cel worked out from its own pixels. A badge on the canvas names the reach before you commit, for example "3 frames" or "2 layers × 4 frames". Locked and hidden layers stay out of it, and the Bucket leaves adjustment layers alone.
On a locked layer the Bucket does nothing and shows a message saying the layer is locked.
Tips
- If your fill "leaks" outside an area, there's likely a 1-pixel gap in the outline. Raise Close Gap, or zoom in to find and close it.
- Use non-contiguous mode to quickly recolor all instances of a specific color.
- For more precise color replacement, use Replace Colors… in the Image menu. Its Sample from canvas button lets you click the canvas to pick the colors to replace.
- Fill works with selections: with a selection active, the fill only affects pixels inside it.