Color/Color Delta

The Color Delta function compares all pixel colors of the texture to a specified color. It translates the similarity of the two colors to a color gradient. Distant colors receive values from the left side of the gradient and more similar colors are replaced with colors from the right side of the gradient. The similarity measurements are performed with the sqrt((r1-r2)2+(g1-g2)2+(b1-b2)2) formula.

The pixels are compared to the Secondary Color (right). The new colors come from a color gradient, that leads from black to the Primary Color (left).

The distance between the colors can be increased with the Amplify value to receive a wider spread color gradient.