-Fixed color calculation problem (it was not clamping for the min and max values)