Beginner question - Opening arcs from center
in
Programming Questions
•
2 years ago
Hello, I am try to make simple code to generate continuosly opening arcs from center. Here is my progress:
- int strokeFat = 25;
- int numberOfCuts = 10;
- int numberOfArcs = 9;
- float cut = TWO_PI / numberOfCuts;
- float dis = 70;
- float[] rad = new float [numberOfCuts];
- void setup() {
- println(cut);
- size(800,800);
- stroke(0);
- strokeCap (SQUARE);
- background(255);
- smooth();
- int cx=width/2;
- int cy=height/2;
- for (int i = 0; i<numberOfCuts; i++) {
- rad[i]=cut++;
- println(rad[i]);
- }
- for (int i = 0;i<numberOfArcs;i++) {
- arc (cx,cy,i*dis,i*dis,0,rad[i]);
- noFill();
- strokeWeight(strokeFat);
- }
- }
Can anyone help pls? I will be thankful for any help.
Cheers from Prague ;)
1