def set_single_value(self, val):
        """ Sets the curve to be linear, and only use a single value """
        self._cv_points = [[0.5, val]]
        self._modified = False
        self.build_curve()
 Sets the curve to be linear, and only use a single value 
metadrive/render_pipeline/rpcore/util/smooth_connected_curve.py