Copied in PJS using 2 pimages
/* @pjs preload="country.jpg,lake.jpg"; */ size(472,266); PImage img = loadImage("country.jpg"); PImage img2 = loadImage("lake.jpg"); // copy corner of lake onto country img.copy(img2, 272, 138, 200, 128, 272, 138, 200, 128); image(img, 0, 0);