control radius of circle problem
in
Programming Questions
•
2 years ago
i want to be able to move elllipse and then when i right click be able to control its size (while keeping it in its current position). i have tried to do this; moving ellipse round screen is fine, but how do i then change ellipse size without moving its position? Help me?........
- void setup() {
- size(500, 500);
- smooth();
- noStroke();
- }
- void draw() {
- background (255);
- fill (0, 0, 255);
- ellipse(mouseX, mouseY, 50, 50);
- if (mouseButton==LEFT) {
- ellipse(mouseX, mouseY, mouseX, mouseY);
- }
- }
1