25 October 2022•TEZOS•IPFS
Yet another zen/minimalist coding project :)
p5 code is as follows:
function setup() {
colorMode(HSB);
randomSeed(fxrand()*9999999999999);
createCanvas(min(windowWidth, windowHeight), min(windowWidth, windowHeight));
let u = width/random(13,80);
let xs = [];
let ys = [];
let length = random(5,50);
let iterations = random(100,250);
for (let i=0; i<length; i++) {
xs.push(random(width*0.25,width*0.75));
ys.push(random(width*0.25,width*0.75));
}
background(color(random(0,360),100,100));
for (let i=0; i<iterations; i++) {
strokeWeight(u*(iterations-i));
stroke(color(random(0,360),100,100));
fill(color(random(0,360),100,100));
beginShape();
for (let i in xs) {
vertex(xs[i],ys[i]);
}
endShape(CLOSE);
}
fxpreview();
}