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);
}
}
I think there is many of things going wrong :) but main problem is, that I can´t make smaller cuts of arcs. Value of how much is arc open or close is get from TWO_PI / numberOfCuts variable called cut, which is than stored in array. I think this proceeding is not optimal.
Can anyone help pls? I will be thankful for any help.