Brush-seeded flood-fill
Each stroke marks one or more starting locations. From every marked location, erasure expands through adjacent pixels that satisfy the tool's color-similarity rule. Expansion stops where pixels fail that rule or the matching area is no longer connected. Consequently, the affected region is determined by both color and connectivity, not simply by the visible width and length of the brush stroke.