xxxxxxxxxx
30
var sound;
var button;
function preload() {
sound = loadSound('sandstorm.mp3');
}
function setup() {
createCanvas(400, 400);
background(0);
sound.loop();
sound.play();
}
function draw() {
rave();
}
function rave() {
for (var x = 0; x <= width *1.5; x += 50) {
for (var y = 0; y <= height*1.5; y += 50) {
noStroke();
fill(random(0, 255), random(0, 255), random(0, 255), random(0, 255));
ellipse(random(0,400), random(0,400), 45, 45);
}
}
}