extended opacity

added the possibility to invert the behavior of the opacity.