I have an image which is a white background with a black logo.
The edges of the logo have a range of colors between black and white:
If I want to change the foreground color to green, how do I do it so that the edges are also a blend of green, based on how much black is in each pixel.
This is what I have:
If I also want to change the background color, for example to black, then how do I make each edge pixel somewhere between green and black?