Code viewer for World: P5 test preserve buffer

// Cloned by Mathias Bazin on 27 Jun 2018 from World "P5 test" by Mathias Bazin 
// Please leave this clone trail here.
 


// Customise AB run parameters (optional).
// The following parameters can be customised. (They have default values.)

AB.clockTick       = 20;    

	// Speed of run: Step every n milliseconds. Default 100.
	
AB.maxSteps        = 65545;    

	// Length of run: Maximum length of run in steps. Default 1000.

AB.screenshotStep  = 300;   
  
	// For automatic generation of World images.
	// Take screenshot on this step. (All resources should have finished loading.) Default 50.

AB.runReady = false;

var s = document.createElement("script");
s.src = "/uploads/mathias/p5t.js";                           // local or remote URL
s.onload = function() { 
    console.log("p5 loaded");
    AB.runReady = true;
};        // function to be called when JS is loaded
document.head.appendChild(s);  
	
	
function setup() {
   
    threeworld.canvas = createCanvas($(document).width(), $(document).height());

}

function draw()
{
 if (mouseIsPressed) {
    fill(0);
  } else {
    fill(255);
  }
  ellipse(mouseX, mouseY, 80, 80);
}
		
function World() { 

	this.nextStep = function(){};

}