var jsMain = function(processingInstance){ with (processingInstance){ size(400, 400); // set size of canvas