Brand new to this and thought i'd give processing a go.
How can I get an image to load to the canvas by a string input? So far I have managed to make the image load if key is pressed e.g:
if (key == 't' || key == 't') {
img=loadImage ("thebarleymow.jpg");
image(img,0,200);
}
}
What would be the process of making it load through a series of characters? i.e Type 'badger' img=loadImage ("badger.jpg");
Look forward to hearing back. Thanks