improved color and transparency manipulation