Mobile app version of vmapp.org
Login or Join
Moriarity648

: Would combining light and dark overlay keep the image the same? If you have an image, and you added an overlay of a semi-transparent white, e.g. rgba(255, 255, 255, 0.3) in CSS, you get a

@Moriarity648

Posted in: #Color #ColorTheory #Opacity #Overlay

If you have an image, and you added an overlay of a semi-transparent white, e.g. rgba(255, 255, 255, 0.3) in CSS, you get a slightly lighter version of the image.

My question is, if you add another overlay on top of it (with another element or something) and that element has rgba(0, 0, 0, 0.3), which is semi-transparent black with the same opacity, would the image turn back to normal?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Moriarity648

1 Comments

Sorted by latest first Latest Oldest Best

 

@Yeniel278

No.

Color = alpha*FG + (1-alpha)*BG

what you are proposing is

Color = alpha + (1- alpha)*(0+(1-beta)*original)

so alpha would have to be

(0.3 original)/(-1. + 0.7 original)

if first layer is 0.3. So no not possible unless you only have one color. Even if this wasnt the case you would lose all pure colors by clipping.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme