Answers for "add image processing"

1

add image processing

PImage img;

void setup() {
  // Images must be in the "data" directory to load correctly
  img = loadImage("laDefense.jpg");
}

void draw() {
  image(img, 0, 0);
  image(img, 0, 0, width/2, height/2);
}
Posted by: Guest on July-25-2020

Browse Popular Code Answers by Language