This is what I have so far:
Now how do I make it to only show that little dot after 20 clicks?
int []x;
int []y;
int mouseClicks;
void setup() {
size (500, 500);
x = new int[20];
y = new int[20];
}
void draw() {
background(255, 255, 255);
for (int i = 0; i <=19; i = i +1) {
x[i] = mouseX;
for (int t = 0; t <=19; t = t +1) {
y[t] = mouseY;
fill(0, 0, 255);
if (mousePressed) {
circle(x[i], y[t], 10);
}
}
}
}