import processing.core.*; import java.applet.*; import java.awt.*; import java.awt.image.*; import java.awt.event.*; import java.io.*; import java.net.*; import java.text.*; import java.util.*; import java.util.zip.*; import javax.sound.midi.*; import javax.sound.midi.spi.*; import javax.sound.sampled.*; import javax.sound.sampled.spi.*; import java.util.regex.*; import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.sax.*; import javax.xml.transform.stream.*; import org.xml.sax.*; import org.xml.sax.ext.*; import org.xml.sax.helpers.*; public class image_4_2 extends PApplet {public void setup() {/*Drew Cogbill Image 4.2 [computation08]*/ //Load three images and combine them with blend(). size(500, 375); PImage img2 = loadImage("dickson.jpg"); PImage img = loadImage("bottles.jpg"); PImage img3 = loadImage("tree.jpg"); //First, combine two using the dot syntax img.blend(img2, 20, 20, 460, 345, 20, 20, 460, 345, ADD); //Then, use normal blend(imgSrc) to add third image(img, 0, 0); blend(img3, 20, 20, 460, 345, 20, 20, 460, 345, MULTIPLY); //LIGHTEST OVERLAY SCREEN HARD_LIGHT SOFT_LIGHT noLoop(); } static public void main(String args[]) { PApplet.main(new String[] { "image_4_2" }); }}