xxxxxxxxxx
33
function setup() {
createCanvas(500, 500);
background(205);
art = color(0);
b = color(0, 0, 255);
r = color(255, 0, 0);
g = color(0, 255, 0);
}
let r, g, b, l;
let nothing;
function draw() {
noStroke();
fill(0, 0, 255);
circle(30, 40, 15);
fill(255, 0, 0);
circle(50, 40, 15);
fill(0, 255, 0);
circle(70, 40, 15);
fill(255);
square(85, 33, 15); //eraser
if (mouseIsPressed) {
stroke(art);
strokeWeight(10);
line(mouseX, mouseY, pmouseX, pmouseY);
}
}