xxxxxxxxxx
31
function setup() {
createCanvas(400, 400);
}
function draw() {
background('rgba(114,114,255,0.5)');
lollipop(200,200,50)
lollipop(100,100,70)
lollipop(300,150,80)
lollipop(70,280,100)
}
function lollipop(x,y,circleSize) {
fill(255)
noStroke()
rect(x-5,(y+circleSize/2),10,60)
fill('rgba(255,0,0,0.82)')
circle(x,y,circleSize)
fill('rgba(237,255,8,0.77)')
circle(x,y,circleSize-15)
fill('rgba(255,0,0,0.82)')
circle(x,y,circleSize-30)
fill('rgba(237,255,8,0.77)')
circle(x,y,circleSize-45)
fill('rgba(255,0,0,0.82)')
circle(x,y,circleSize-60)
}