If I have a color for the bottom layer and an alpha value (C & A) and you want to create custom C & A on the screen, what is the function to determine what C & A needs to be added as a layer to the top of the bottom layer?
edit:
I want to duplicate the “regular” Photoshop mode to fit the graphic design of the designer.
For instance:
BASE LAYER rgb: 255-0-0 alpha: 51/256 + NEW LAYER rgb: ??? alpha: ??? = DESIRED LAYER rgb: 114-0-141 alpha: 92/256
PS: answer 0-0-255 alpha: 51/256 ... but I only know this because I wrote the problem and checked it in Photoshop.
source share