Photoshop

Fill with the Paint Bucket tool

The Paint Bucket tool fills adjacent pixels that are similar in color value to the pixels you click.

Note: The Paint Bucket tool cannot be used with images in Bitmap mode.
  1. Choose a foreground color. (See Choose colors in the toolbox.)
  2. Select the Paint Bucket tool .
  3. Specify whether to fill the selection with the foreground color or with a pattern.
  4. Specify a blending mode and opacity for the paint. (See List of blending modes.)
  5. Enter the tolerance for the fill.

    The tolerance defines how similar in color a pixel must be (to the pixel you click) to be filled. Values can range from 0 to 255. A low tolerance fills pixels within a range of color values very similar to the pixel you click. A high tolerance fills pixels within a broader range.

  6. To smooth the edges of the filled selection, select Anti-aliased.
  7. To fill only pixels contiguous to the one you click, select Contiguous; leave Contiguous unselected to fill all similar pixels in the image.
  8. To fill pixels based on the merged color data from all visible layers, select All Layers.
  9. Click the part of the image you want to fill. All specified pixels within the specified tolerance are filled with the foreground color or pattern.

    If you’re working on a layer and don’t want to fill transparent areas, make sure that the layer’s transparency is locked in the Layers palette. (See Lock layers.)