resizing arcs
in
Programming Questions
•
1 year ago
hi, have four arcs with width and height being controlled by mouseX. How can i resize each arc seperatley, at the moment they all move together..
- int r =90;
- float x=100;
- float y=100;
- float angle;
- void setup() {
- size(500, 500);
- smooth();
- }
- void draw() {
- background(255);
- fill(175);
- float x = mouseX;
- float y = mouseX;
- arc (width/2, height/2, x, y, radians(0), radians(90));
- fill(20);
- arc (width/2, height/2, x, y, radians(90), radians(180));
- fill(60);
- arc (width/2, height/2, x, y, radians(180), radians(270));
- fill(80);
- arc (width/2, height/2, x, y, radians(270), radians(360));
- }
1