xxxxxxxxxx
53
let unit;
let x=0;
let y=0;
function setup() {
createCanvas(windowWidth, windowHeight);
unit = windowWidth/60;
noStroke();
colorMode(HSB,1);
rectMode(CORNER);
}
function draw() {
y=0;
x=0;
for(let i=0; i< 3650; i++){
fill(.04,.4,.95);
rect(x,y,4,4);
y+=unit;
if(y>height-unit){
y=0;
x+=unit/2;
}
}
x=0;
y=0;
for(let i=0; i< second(); i++){
fill(0.04,.8,.85);
rect(x,y,4,4);
print("hi")
y+=unit;
if(y>height-unit){
y=0;
x+=unit/2;
}
}
}