xxxxxxxxxx
// https://www.youtube.com/user/takawoshunsuke
// https://coolors.co/010001-2b0504-874000-bc5f04-f4442e お気に入りcolor
let isRecording = false;
function setup() {
createCanvas(600, 600);
colorMode(HSB, 360, 100, 100, 100);
}
function draw() {
background(7, 81, 96);
noFill();
let i = 0;
drawingContext.shadowColor = color(30, 98, 74);
drawingContext.shadowBlur = 20;
for (let d = width - 20; d > 0; d -= 50) {
drawingContext.setLineDash([30, 10]);
drawingContext.lineDashOffset = 1 * frameCount % 40 * (i % 2 == 0 ? -1 : 1);
stroke(28, 100, 53);
strokeWeight(5);
strokeCap(SQUARE);
// rect((width - d) / 2, (height - d) / 2, d, d);
// fill(132, 100, 2);
circle((width - d) / 1, (height - d) / 1, d, d);
circle((width + d - 570) / 1.5, (height - d + 280) / 1.5, d, d);
i++;
}
}
// error code↓
// function mousePressed() {
// if (isRecording == true) {
// stopRecording();
// } else {
// startRecording();
// }
// isRecording = !isRecording;
// }