xxxxxxxxxx
49
let width = 300;
let height = 330;
let lins = [];
function setup() {
createCanvas(width , height);
rectMode(CENTER);
angleMode(DEGREES);
let nums = 50;
for(let i=0; i<nums; i++){
let rry = ['#9C6F00','#C4C4C4','#680E00','#211F1A','#4D483C']
let index = i % rry.length;
let c = rry[index];
let lin = new Line((nums - i) * 5,c,random(20,50));
lins.push(lin);
}
}
function draw(){
background(255);
translate(width/2,height/2);
for(let i=0; i<lins.length; i++){
lins[i].displayRadial();
}
}