xxxxxxxxxx
let Npattern=70;
function setup() {
createCanvas(windowWidth, windowHeight);rectMode(CENTER);background(255);
for(let i =1;i<Npattern;i++){greca(random(width),random(height),random (PI/2),random(0.4),20);}
}
function draw(){//background(255);
}
function greca(x,y,angolo,scala,N){push();translate(x,y);rotate(angolo);scale(scala);for (let i=1;i<=N;i++){strokeWeight(4);stroke(0);fill(map(i,1,N,0,250),0,0,100);rect(0,0,map(i,1,N,500,0));} pop();
}