xxxxxxxxxx
65
let c = 0;
let bubbleSize = 0;
function setup() {
createCanvas(800, 800);
}
function draw() {
background1();
bubble();
}
function mousePressed() {
if (c == 0) {
c = (216);
} else {
c = 0;
}
background(c,203,187);
}
// User defined function 1:
function bubble() {
strokeWeight(0.2);
fill(0, 100, 255, 50);
ellipse(mouseX, mouseY, bubbleSize);
bubbleSize = abs(mouseX - pmouseX);
}
// User defined function 2:
function background1() {
strokeWeight(0.5);
fill(197, 168, 26);
triangle(200, 0, 140, 90, 250, 110);
fill(121, 133, 116, 200);
ellipse(240, 140, 130, 130);
fill(119, 67, 152);
ellipse(70, 80, 80, 80);
strokeWeight(2);
line(55, 0, 100, 240);
strokeWeight(1);
line(0, 80, 200, 80);
strokeWeight(5);
line(100, 0, 230, 120);
strokeWeight(1)
line(20, 180, 220, 180);
fill(123, 0, 0);
strokeWeight(3);
rect(292, 180, 55, 50);
line(327, 202, 361, 202);
strokeWeight(4);
line(327, 210, 361, 210);
}