dist = √((r-kr)²+(g-kg)²+(b-kb)²).dist < tolerance are fully transparent. Between tolerance and tolerance+feather, alpha ramps from 0→255.Choose which optional categories you allow. Necessary cookies are always on. Privacy Policy.