xxxxxxxxxx
let g;
let spreadProbability = 0.5;
let mutationRange = 10;
disableFriendlyErrors = true;
function setup() {
setFrameRate(25);
createCanvas(windowWidth, windowHeight);
g = new Grid();
}
function draw() {
g.display();
}
function mouseClicked(){
let selectedCell = g.lookup(mouseX,mouseY);
selectedCell.state = 1;
}