xxxxxxxxxx
50
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 i = 0; i < 5; i++) {
for (let j = 0; j < 5; j++) {
let ox = 50;
let oy = 50;
let x = ox + i * 75;
let y = oy + j * 75;
drawTape(x, y);
}
}
}