loadImage(path);
Load a png or jpeg image
Arguments
path
The local image pathReturns
Image
The image instancefunction setup()
createWindow(600, 600);
img = loadImage('/path/to/mypic.png');
end
function draw()
background(51);
image(img, 0, 0);
end