Open letochagone opened 1 year ago
after several hours of intensive calculations ^_^, I realize that I made a mistake
B(Cb,Cs) = (1,1,0.4) Cs is now : Cs = (1-ab) Cs + ab B(Cb,Cs) Cs = (0.4 , 1 , 0.52)
simple alpha compositing : ao Co =as Cs + ab Cb (1-as) ao Co = 0.7 (0.4 , 1 , 0.52) + 0.4 ( 1 , 0 , 0.2) 0.3 ao * Co = (0.4 , 0.7 , 0.388)
Is there anyone to tell me if my calculations are correct or completely wrong? ....
In order to implement some CSS functions in WebGL, I am trying to understand precisely their implementations. Currently my problem concerns the mix-blend-mode.
take this example where I apply the following style for an element :
now I read the color obtained with a color picker :
my goal is to find this result (102/255 , 179/255 , 99/255) = (0.4 , 0.7 , 0.388...) by applying the formulas : https://drafts.fxtf.org/compositing/#blending
Am I applying the theory correctly up to this point? How to continue to find the screenshot result : (102/255 , 179/255 , 99/255) = (0.4 , 0.7 , 0.388...) ?