Adjusting semi-fullfilled opacity

99% fullfilled will be 50% opacity, anything below will use a sliding scale to set the opacity from 100% down to 50%
100% fullfilled and above will be set to 30% opacity