xxxxxxxxxx
21
function setup() {
createCanvas(windowWidth, 200);
song = loadSound('pluck.mp3');
rectMode(CENTER);
background(220);
frameRate(3);
}
function draw() {
//ellipse(50, 50, 80, 90);
translate(width/2, height/2);
rotate(frameCount);
stroke(random(200),random(200),255);
fill(random(200,255));
rect(0, 0, 90, 90);
song.play();
}