We are about to switch to a new forum software. Until then we have removed the registration on this forum.
here is the code
int cx = 200; int cy = 200; void setup(){ size(400,400); } void draw(){ float mx = mouseX; float my = mouseY; float radius = sqrt(sq(mouseX-cx) + sq(mouseY-cy)); ellipseMode(RADIUS); ellipse(cx,cy,radius,radius); }
here
int cx = 200; int cy = 200; void setup() { size(400, 400); background(255); } void draw() { background(255); float mx = mouseX; float my = mouseY; float radius = sqrt(sq(mouseX-cx) + sq(mouseY-cy)); ellipseMode(RADIUS); ellipse(cx, cy, radius, radius); }
background(255);
does the trick
No i mean that I do not want it to draw a ellipse wherever the mouse goes. I want there to be 1 ellipse that updates the size.
it changes the size according to mouse position.
yeah but i only want 1 ellipse
did you run my code?
;-)
yep thanks!!!!
Answers
here
does the trick
No i mean that I do not want it to draw a ellipse wherever the mouse goes. I want there to be 1 ellipse that updates the size.
it changes the size according to mouse position.
yeah but i only want 1 ellipse
did you run my code?
;-)
yep thanks!!!!