xxxxxxxxxx
41
x = 0;
y = 725;
count = 1;
hor = 0;
function setup() {
createCanvas(700, 690);
strokeWeight(0.5)
background(50);
noFill();
stroke(209,185,72);
}
function draw() {
oddOrEven = (count % 2);
if (oddOrEven == 1) {
hor = 0;
} else {
hor = -20;
}
noFill();
quad(x+5, y-10, x + 20, y + 20, x, y + 50, x - 20, y + 20);
noFill();
quad(x-8, y-5, x + 10, y + 10, x, y + 40, x - 10, y + 10);
x = x + 40;
if (x > width) {
x = hor;
y = y - 50;
count = count + 1;
}
if (y < -50) {
noLoop();
}
}