Re: [csswg-drafts] [blending] mathematical rules for background-blend-mode (#7946)

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)**


-- 
GitHub Notification of comment by letochagone
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7946#issuecomment-1288950751 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 24 October 2022 12:20:16 UTC