def update(self):
        """ Internal update method which updates all day time settings """
        for setting_id, handle in iteritems(self._setting_handles):
            # XXX: Find a better interface for this. Without this fix, colors
            # are in the range 0 .. 255 in the shader.
            if isinstance(handle, ColorType):
                value = handle.get_value_at(self._time)
            else:
                value = handle.get_scaled_value_at(self._time)
            self._input_ubo.update_input(setting_id, value)
 Internal update method which updates all day time settings 
metadrive/render_pipeline/rpcore/pluginbase/day_manager.py