<https://forums.getpaint.net/topic/31843-hsv-eraser/#comment-426908>
<http://schema.org/text>
"The \"partial erase\" feature is similar to Grim Reaper's, but I think there are significant differences between the two plugins. Grim Reaper (like, I assume, the Magic Wand) uses the  RGB Euclidean distance to measure how close the colors are. For many purposes, I think HSV ranges often work better for removing backgrounds. Also, Grim Reaper reduces alpha based on the similarity of the colors. Once my program recognizes a pixel as matching, it reduces the alpha as far as possible while still producing the original color when alpha blending to the match color. Grim Reaper won't always produce the smallest possible alpha, and I'm pretty sure it won't always preserve the original color, since sometimes the adjusted RGB values will be clamped. \n  \nWhen used with Erase Non-Matching Pixels, my plugin is similar to Color Cut, but much more flexible. \n  \nI admit, if I'd realized that Hue/Saturation+ can erase background hues as well as it does, I wouldn't have written this plugin, which started out as Hue Eraser. Nevertheless, my plugin does have several useful additional features. First, it also allows the pixel's value to be considered; second, it has the Grim Reaperesque \"partial erase\"; third, it optionally allows the matching pixels to be kept; fourth, it allows choice of the primary and secondary colors as the matching color. The last may seem trivial, but it makes it easier to use the plugin with the color picker tool. "
<https://forums.getpaint.net/topic/31843-hsv-eraser/?tab=comments#comment-426908>