Replacing B&W with a gradient of colors
Hi,
I'm currently facing some technical issue. I have a black & white image, with a transparent background. In addition, I have a (linear) gradient, from one color (yellow) to another (purple). I'm trying to create a replica of the B&W image, such as each gray pixel turn into a pixel colored in the same proportion of yellow/purple as it was colored in white/black.
There is another way of describing this probleme : let's assume you have a bicolor picture, and you know the two main colors (each pixel being colored with a combination of those two). Simply apply a B&W filter to your image. Then, given the two initial colors, how can you reconstitute the first picture ?
If you have any idea to do this, feel free to volunteer your answer !
Thanks a lot 🙂
