Function setOpacity

Set the opacity of a color color to frac.