xxxxxxxxxx
40
function setup() {
createCanvas(400, 400);
}
function draw() {
// background(220);
noStroke();
for (let x = 0; x <= width; x += 15) {
for (let y = 0; y <= height; y += 15) {
if ((x+y) % 10 == 0) {
fill(0);
// noFill();
if (y % 13 ==0){
fill(255);
} else {
fill(0);
}
// fill (255);
// stroke(255);
} else {
noFill();
// fill(255);
// noStroke();
// fill(0);
}
// if (x)
// if (x % 5 == 0) {
// translate(2,0);
// } else {
// noFill();
// }
let s = random(20, 100);
triangle(x, y+ 20, x +10 , y+10, x +10, y+30);
noLoop();
}
}
}