Processing to p5.js converter

This is a find/replace converter for turning simple Processing sketches into p5.js code.



Instantiation:
What is this?

What this converts


What this doesn't do

For example: if you have declared an array in Processing above the setup function like this:
	int [] list = new int [20];
	void setup() {
	  size(400, 400);
	}
	
the converter will change it to this;
	var  list = new Array(20);
	function setup() {
	  createCanvas(400, 400);
	}

but you will need to move the creation of the array into the setup on your own.
	var  list;
	function setup() {
	  createCanvas(400, 400);
	  list = new Array(20);
	}
page made by Joe Mckay, Brennan Pilcher, and Paul Thayer