xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(255, 247, 222);
stroke(255, 105, 210);
strokeWeight(24);
strokeCap(PROJECT);
for (let y = 0; y < height; y+=80) {
for (let x = 0; x < width; x+=40) {
line(x, y, x+20, y+20);
line(x+20, y+20, x+40, y);
}
}
stroke(255, 247, 222);
strokeWeight(2);
for (let y = 0; y < height; y+=10) {
for (let x = 0; x < width; x+=10) {
line(x+10, y, x, y+10);
}
}
stroke(165, 182, 250);
for (let y = 45; y < height; y+=80) {
for (let x = 0; x < width; x+=5) {
line(x+10, y, x, y+10);
}
}
blendMode(MULTIPLY)
stroke(75, 129, 209);
strokeWeight(30);
for (let x = 0; x < width; x+=80) {
line(x, 0, x, height);
}
}
//function setup() {
//createCanvas(windowWidth, windowHeight);
//background(255, 247, 222);
//stroke(255, 105, 210);
//strokeWeight(2);
//strokeCap(SQUARE);
//for(let y = 0; y < height; y+=10){
//for(let x = 0; x < width; x+=10)
//line(x, y, x+5, y+5);
//}
//stroke(9, 4, 99)
//strokeCap(PROJECT);
//strokeWeight(2);
//for (let y= 0;y< height; y+=20){
// for(let x= 0; x< width; x+=20)
//line(x+10, y, x, y+10)
//}
//}