Sketch 04 : Imagine


// create an image variable
PImage img;

// load the image (it must be in your sketch's data folder
img = loadImage("someimage.jpg");

// tint (gray, alpha) or tint (val,val,val,alpha) tint(255,0,0,50);

// display the image image(name, x, y, width, height)
image(img,0,0);

  1. 4.1 load an image
  2. 4.2 load 3 versions of an image with 3 different tints
  3. 4.3 using a "for" loop, load lots of images and change their location and tint
  4. Save your file as yourLastName_Imagine