jspsych/plugins/jspsych-rdk.js
//Function to update all the dots all the apertures and then draw them

Function to update all the dots all the apertures and then draw them
Function to update all the dots all the apertures and then draw them
function updateAndDraw(){
			for(currentApertureNumber = 0; currentApertureNumber < nApertures; currentApertureNumber++){
				initializeCurrentApertureParameters(currentApertureNumber);
		        clearDots();
      		}
			for(currentApertureNumber = 0; currentApertureNumber < nApertures; currentApertureNumber++){
				initializeCurrentApertureParameters(currentApertureNumber);
				updateDots();
      		}
			for(currentApertureNumber = 0; currentApertureNumber < nApertures; currentApertureNumber++){
				initializeCurrentApertureParameters(currentApertureNumber);
				draw();
			}
		}
function updateAndDraw ( ) { for ( currentApertureNumber = 0 ; currentApertureNumber < nApertures ; currentApertureNumber ++ ) { initializeCurrentApertureParameters ( currentApertureNumber ) ; clearDots ( ) ; } for ( currentApertureNumber = 0 ; currentApertureNumber < nApertures ; currentApertureNumber ++ ) { initializeCurrentApertureParameters ( currentApertureNumber ) ; updateDots ( ) ; } for ( currentApertureNumber = 0 ; currentApertureNumber < nApertures ; currentApertureNumber ++ ) { initializeCurrentApertureParameters ( currentApertureNumber ) ; draw ( ) ; } }
Function to update all the dots all the apertures and then draw them
Function to update all the dots all the apertures and then draw them
//Three for loops that do things in sequence: clear, update, and draw dots.
 // Clear all the current dots
 //Initialize the variables for each parameter
 //Clear the canvas by drawing over the current dots
 // Update all the relevant dots
 //Initialize the variables for each parameter
 //Update the dots
 // Draw all the relevant dots on the canvas
 //Initialize the variables for each parameter
 //Draw on the canvas
