xxxxxxxxxx
24
function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
textSize(64);
textAlign(CENTER, CENTER);
}
function draw() {
background(0, 550, 100, 25);
let amplitude = 100;
let offset = sin(frameCount) * amplitude;
// circle(200, 200 + offset, 50);
text("B", 50, 200 + sin(frameCount + 20) * amplitude);
text("O", 100, 200 + sin(frameCount + 40) * amplitude);
text("U", 150, 200 + sin(frameCount + 60) * amplitude);
text("N", 200, 200 + sin(frameCount + 80) * amplitude);
text("C", 250, 200 + sin(frameCount + 100) * amplitude);
text("E", 300, 200 + sin(frameCount + 120) * amplitude);
}