jspsych/plugins/jspsych-rdk.js
//Function that clears the dots on the canvas by drawing over it with the color of the baclground

Function that clears the dots on the canvas by drawing over it with the color of the baclground
Function that clears the dots on the canvas by drawing over it with the color of the baclground
function clearDots(){
	    	var dotArray = dotArray2d[currentSetArray[currentApertureNumber]];
			for (var i = 0; i < nDots; i++) {
				dot = dotArray[i];
				ctx.beginPath();
				ctx.arc(dot.x, dot.y, dotRadius+1, 0, Math.PI * 2);
				ctx.fillStyle = backgroundColor;
				ctx.fill();
			}
		}
function clearDots ( ) { var dotArray = dotArray2d [ currentSetArray [ currentApertureNumber ] ] ; for ( var i = 0 ; i < nDots ; i ++ ) { dot = dotArray [ i ] ; ctx . beginPath ( ) ; ctx . arc ( dot . x , dot . y , dotRadius + 1 , 0 , Math . PI * 2 ) ; ctx . fillStyle = backgroundColor ; ctx . fill ( ) ; } }
Function that clears the dots on the canvas by drawing over it with the color of the baclground
Function that clears the dots on the canvas by drawing over it with the color of the baclground
//Load in the current set of dot array for easy handling
 //Loop through the dots one by one and draw them
