how do i make sure something is drawn in a specific area? for example i would like to draw something that does not take up the whole page. this is my code so far.
int x=0;
int y=0;
void setup() {
background(124,122,122);
size(600,600);
noStroke();
smooth();
}
void draw() {
if (mouseX <100)
if (mouseY <100)
fill (216,175,63);
ellipse(mouseX,mouseY, mouseX,mouseY);
}
int x=0;
int y=0;
void setup() {
background(124,122,122);
size(600,600);
noStroke();
smooth();
}
void draw() {
if (mouseX <100)
if (mouseY <100)
fill (216,175,63);
ellipse(mouseX,mouseY, mouseX,mouseY);
}
1