xxxxxxxxxx
/*
not pressed 5000ms -> 1122ms Scripting [rounded to int]
pressed 5000ms -> 4916ms Scripting [float]
*/
function setup() {
createCanvas(windowWidth,windowHeight, WEBGL);
}
function draw() {
background(0,0,0);
for(let i=0; i<120; i++) {
let n=random(2.0);
if(!mouseIsPressed) n = Math.round(n);
quad(80,0, 200+n,0, 200+n,4, 80,2);
rotate(TAU/120);
}
}