We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, is there a code for changing the size of an object when it is moving?
Maybe something like this?
void setup() { size(800, 800); } void draw() { int rad = int(dist(mouseX, mouseY, pmouseX, pmouseY))+10; ellipse(mouseX, mouseY, rad, rad); }
Or like this:
int radius = 10; int posX = 10; void setup() { size(800, 800); } void draw() { background(255); ellipse(posX, width / 2, radius, radius); radius++; posX += 2; }
Note: moved the topic, please, read the category descriptions!
Answers
Maybe something like this?
Or like this:
Note: moved the topic, please, read the category descriptions!