`num` can be any number. Opacity can only be a positive number between 0 and 1.