xxxxxxxxxx
34
let pi = 3.141592653589793;
let numLines = 200;
let x = 50;
let y = 10;
let yS = 10;
let xS = 10;
let start = pi;
let stop = (pi*3)/2
let d = 200;
function setup() {
let g = 247;
background(g);
createCanvas(800, 800);
stroke(255,0,0);
noFill();
}
function draw() {
let arcS = (QUARTER_PI/100);
for (let i = 0; i<numLines;i=i+1){
strokeWeight(5-i*0.1);
stroke(i*10,255-i*5,0)
arc(x+xS*i,y+yS*i,d,d, start + arcS *i, stop - arcS * i);
}
}