I'm trying to use processing in IntelliJ and I'm having trouble importing/running an image file. The console is saying that the file cannot be reached because it is not in my sketch. What is a sketch and how do I add a file to it?
I've made sure the file name is right so I don't think that is the issue.
import processing.core.PApplet;
import processing.core.PImage;
public class image2 extends PApplet {
public static void main(String[] args) {
PApplet.main("image2");
}
public void settings() {
size(1920, 1080);
}
PImage photo;
public void setup() {
size(1920, 1080);
photo = loadImage("testimage.jpg");
}
public void draw(){}
}