Hi, I’m trying to create a program that makes it so every new click reveals a rectangle in a specific region. When all of the clicks are done, then all the rectangles will be revealed- showing an image. Basically pixel art. I’m not sure what function I would use to have each click create a rectangle in just that specific area. This is the code that I’ve done so far, but I’m stumped with the floating function.
void setup() {
size(500,400);
background(0);
}
void draw() {
if (mousePressed) {
stroke(10);
fill((255),(255),(255));