function ITI() {

      // draw the background of the canvas
      DrawBackground();

      // clear keyboard listener
      jsPsych.pluginAPI.cancelAllKeyboardResponses();

      // kill any remaining setTimeout handlers
      jsPsych.pluginAPI.clearAllTimeouts();

      // set a timeout to end the ITI after a given delay
      jsPsych.pluginAPI.setTimeout(function() {
        EndTrial();
      }, trial.iti_duration);

    }
// function to show an empty screen for the duration of the inter-trial interval
function to show an empty screen for the duration of the inter-trial interval
function to show an empty screen for the duration of the inter - trial interval
function ITI() {
      DrawBackground();
      jsPsych.pluginAPI.cancelAllKeyboardResponses();
      jsPsych.pluginAPI.clearAllTimeouts();
      jsPsych.pluginAPI.setTimeout(function() {
        EndTrial();
      }, trial.iti_duration);
    }
function ITI ( ) { DrawBackground ( ) ; jsPsych . pluginAPI . cancelAllKeyboardResponses ( ) ; jsPsych . pluginAPI . clearAllTimeouts ( ) ; jsPsych . pluginAPI . setTimeout ( function ( ) { EndTrial ( ) ; } , trial . iti_duration ) ; }
function to show an empty screen for the duration of the inter-trial interval
function to show an empty screen for the duration of the inter - trial interval
// draw the background of the canvas // clear keyboard listener // kill any remaining setTimeout handlers // set a timeout to end the ITI after a given delay