xxxxxxxxxx
27
var ellipseWidth = 50
function setup(){
createCanvas(windowWidth, windowHeight);
strokeWeight(4);
}
function draw() {
noFill();
stroke(map(sin(frameCount/100), 0, 1, 0, 255), 50, 100, 255);
ellipse(mouseX, mouseY, ellipseWidth, ellipseWidth, 200);
// fill (255, 255, 255, map(sin(frameCount/50000), 0, 1, 0, 255));
// rect(-10, -10, windowWidth+10, windowHeight+10);
background(map(sin(frameCount/200), 0, 1, 0, 255), map(sin(frameCount/100), 0, 1, 150, 255), map(sin(frameCount/300), 0, 1, 100, 200), 5);
// background(255, 255, 255, 2);
}
/*
function windowResized() {
resizeCanvas(windowWidth, windowHeight);
}
*/