xxxxxxxxxx
78
let width;
let height;
let rry = [];
let arcs,arcs_;
function setup() {
width = 700;
width_ = 700;
createCanvas(500 , 500);
// randomSeed($fx.rand() * 9999);
let count = width * 0.45;
let step = count * 0.025;
let pallette = random(colorPallettes());
let cat = random(['fill','stroke']);
for(let i =0; i<count; i+=step){
arcs = new Arcs(random(1,6),random(1.5,2),i,pallette,count);
rry.push(arcs);
}
}
function colorPallettes(){
return [
// [125,90,200,220,255]
// ['purple','blue','white','orange','green']
// ['#F00F17','#F48104','#8B63FF','#0CC99F','#FDFF04']
// ['#5918F9','#D2BC74','#72AED9','#4702E7']
// ['#3A353B','#7B565D','#F46024','#AABBCB']
// ['#BF0043','#BB0DAA','#FB9296'],
// ['#BBD49B','#89CB50','#70AA84']
// ['#8F5F3E','#DDBB99','#F8D5A3'],
// [color(182,51,253),color(153,0,103),color(246,202,208), color(0,6,39)]
// ['#E21B5A','#9E0C39','#333333','#FBFFE3','#83A300']
// ['#F1ECDF','#D4C9AD','#C7BA99','#000000','#F58723']
// ['#C84C20','#8D406B','#67254A','#C8CBCF','#2C9178']
// ['#9C6F00','#C4C4C4','#680E00','#211F1A','#4D483C']
[color(84,69,108),color(251,67,233),color(158,91,247),color(254,53,23),color(249,149,3)]
]
}
function draw(){
// background(0);
translate(width_/2,width/2);
for(let i=0; i<rry.length; i++){
rotate(random(360));
rry[i].chora();
}
noLoop();
print('DOne!!!')
}
function mouseClicked() {
saveCanvas(document.title+random(0,200000), 'png');
}