That part where you use ellipse, replace the word with image, and insert another argument, the image you want to show, as the first one. Thatâs gonna do it.
PImage img;
img = loadImage("Cats.png");
image(img, x, y, targetWidth, targetHeight);
These are all the things youâll need, but they have to be in different parts! Like global variable, load img in setup and image() replaces ellipse.
@Chrisir I think you mightâve misunderstood what i meant, and iâll tag @dawn too, just in case.
These are the lines you need, but not in the same part of the Code!
What i understood, is that you want to have 1 image instead of all the ellipses (like an emoji instead of ellipses, or so).
You have the PImage img as a global variable and load this image in setup! Then you draw the image with the second line image(img,x,y,w,h) instead of using ellipse(x, y, w, h)!
Iâll edit the post by making img a global variable, just to avoid confusions .