We are about to switch to a new forum software. Until then we have removed the registration on this forum.
int x = 120;
int y = 60;
int radius = 12;
void setup() {
size(240, 120);
ellipseMode(RADIUS);
}
void draw() {
background(204);
float d = dist(mouseX, mouseY, x, y);
if (d < radius) {
radius++;
fill(0);
} else {
fill(255);
}
ellipse(x, y, radius, radius);
}
Like this example, how to zoom image?
Answers
You can use scale - see reference
Or do you mean a bigger ellipse?
Draw on a PImage object like this: https://processing.org/reference/createImage_.html
Then you can use the image() function with 5 parameters: https://processing.org/reference/image_.html
Scale is another option. It has the option to scale and keeping the aspect ratio.
Kf