Background Eraser

Background Eraser Tool

The background eraser tool is used to separate an object in an image from the background. It does this by erasing a specific range of colors within the strokes of the background eraser. When the user presses the image the color at the cursor is sampled. All colors in the stroke of the eraser are compared to the sampled color and those colors outside of the tolerance threshold are erased. The background eraser is essentially a color sampler combined with an eraser.


Several settings determine the behaviour of the background eraser tool:

Size: Sets the width of the eraser brush strokes.

Tolerance: Determines the acceptable difference between a the sampled color and the color in the background eraser strokes. pixels with a color that fall within the tolerance are not erased.
Related Links:
Composite operations in HTML5 canvas