// Cloned by p birdwood on 10 Sep 2020 from World "Tutorial 2.1 " by "Coding Train" project
// Please leave this clone trail here.
/*
https://vimeo.com/channels/learningp5js/138327548
*/
function setup() {
createCanvas(600, 400);
background(250, 250, 100);
}
function draw() {
// background(250, 250, 100);
// ellipse
fill(250,0, 0);
if (mouseButton === LEFT) {
ellipse(mouseX, mouseY, 10, 10);}
else {
ellipse(0,0,0,0)
}
// rectangle
// fill(200, 250, 200);
// rect(400, 100, 50, 50);
}
// try mousePressed function
function mousePressed() {
if (mouseButton === RIGHT) {
background(250, 250, 100);}
}