implemented clipping of out-of-range rgb() values