xxxxxxxxxx
48
let a;
let b;
let f;
function setup() {
createCanvas(1080,720);
background(226,189,79);
noStroke();
f = false;
a = 50;
b = 10;
}
function draw() {
if(f == true){
background (226,189,79)
}
if(a == b) {
fill(242,5,116);
}else{
fill(220, 242, 48);
}
push();
translate(100 + sin(frameCount * 0.0001)*1080,
100 + sin(frameCount * 0.01)*-720);
rotate(frameCount *0.01);
stroke(0);
strokeWeight(1)
ellipse(mouseX,75,mouseY,75)
if(a > b) {
fill(242, 5, 116);
}else{
fill(11,128,64);
}
stroke(0);
strokeWeight(1)
ellipse(mouseX,50,mouseY,50);
pop()
}