// Cloned by Parth Bhatnagar on 23 Oct 2021 from World "Tutorial 5.2" by "Coding Train" project
// Please leave this clone trail here.
/*
https://vimeo.com/channels/learningp5js/139587732
*/
function setup() {
createCanvas(600, 400);
}
function draw() {
background(50);
lollipop(100, 100, 50);
lollipop(300, 200, 150);
}
function lollipop(x, y, diameter) {
fill(0, 200, 255);
rect(x-10, y, 20, 150);
fill(255, 0, 200);
ellipse(x, y, diameter, diameter);
}