calibration spectrum color code reimplemented after segments support