var speech = new p5.Speech();
speech.onLoad = speechLoaded;
createCanvas(windowWidth, windowHeight);
var box = createInput('');
box.position(width/2, height/2);
images[0] = loadImage('pixel-dead.png');
images[1] = loadImage('blox-brk-font-1-big.png');
images[2] = loadImage('pentagon-font-5-big.png');
images[3] = loadImage('Psychedelia.jpg');
fonts[0] = loadFont('pixel dead.ttf');
fonts[1] = loadFont('Blox2.ttf');
fonts[2] = loadFont('Pentagon.ttf');
fonts[3] = loadFont('Psychedelia HM.ttf');
image(images[0], 0, 0, 300, 200);
image(images[1], 300, 0, 300, 200);
image(images[2], 0, 200, 300, 200);
image(images[3], 300, 200, 300, 200);
fill(random(0,255), random(0,255), random(0,255));
if (mouseX>0 && mouseX<300 && mouseY>0 && mouseY<200){
else if (mouseX>300 && mouseX<600 && mouseY>0 && mouseY<200){
else if (mouseX>0 && mouseX<300 && mouseY>200 && mouseY<400){
else if (mouseX>300 && mouseX<600 && mouseY>200 && mouseY<400){
text(input, mouseX, mouseY);
function speechLoaded() {
speech.setVoice("Google UK English Female");