How is transparency calculated mathematically?
In Photoshop, CSS has an opacity value. In fact, this opacity is the transparent behavior of the layer. This is all we know. But how is it mathematically calculated? Is there any equation for calculating opacity?
Having set the opacity value, what happens there?
Take the case with the usual color layers: layer 1 (foreground) and layer 2 (background layer)
Level 1 is red (for example, color A ), and level 2 is white (for example, color B ).
When we set the opacity (say p ) to level 1, we can put 0.5 or 50% and get a whitish red color (say, the color value is X ).
To get this value of X , what should I do mathematically?
t
X = (things which will be a relation containing p, A and B)
I want to find out the exact math equation to find X
Also, if I have an equation, and the color values ββare hexadecimal in nature, why can I get the correct result with a hexadecimal calculator?
colors opacity mathematical-expressions equation
spider
source share