13 September 2022•TEZOS•IPFS
Project 420 is a minimalist work created with p5.js where the goal was to create the shortest possible project (while being deterministic, responsive, nice and relatively complex).
The project code is only 420 characters long!
let f=0,r,l,e,t=i=>{++f>30||(l=99/f**.8,k=[],i.forEach((j=>[[-1,0],[0,-1],[1,0],[0,1]].forEach((o=>f<4|e()<.27&&k.push([j[0]+l*o[0],j[1]+l*o[1]]))))),k.forEach((i=>stroke(...e()<.5?[75,75,75]:[z,z,z],e(z))&circle(i[0]*y,i[1]*y,e(l/10,l)*y))),t(k))},y,z=255;function setup(){randomSeed(1e8*fxrand()),r=min(windowWidth,windowHeight),createCanvas(r,r),y=r/z/2,e=random,strokeWeight(.8*y),noFill(),background(33),t([[z,z]])}
Code is art ✨
License: CC BY-NC 4.0