xxxxxxxxxx
45
function setup() {
createCanvas(400, 400);
}
function draw() {
background("mediumVioletRed");
frameRate(0);
function drawTape(x, y) {
strokeWeight(3);
stroke(0);
rectMode(CENTER);
fill(50);
rect(x, y, 50, 30);
fill(0);
circle(x - 15, y + 4, random(12, 14));
circle(x + 15, y + 4, random(10, 14));
fill(255);
circle(x - 15, y + 4, 10);
circle(x + 15, y + 4, 10);
fill(0);
rect(x, y - 12, 50, 7);
fill(50);
rect(x, y + 4, 25, 12);
strokeWeight(1);
stroke(200);
line(x - 6, y + 2, x + 6, y + 2);
line(x - 6, y + 4, x + 6, y + 4);
line(x - 6, y + 6, x + 6, y + 6);
}
for (let x = 0; x <= width; x += 80) {
for (let y = 0; y <= height; y += 80) {
drawTape(x, y);
}
}
}