loadImage

v0.0.6
loadImage(path);

Load a png or jpeg image

Arguments

pathThe local image path

Returns

imgThe image reference

function setup()
  createWindow(600, 600);
  img = loadImage('/path/to/mypic.png');
end

function draw()
  background(51);

  image(img, 0, 0);
end   
See loadImage in image.h