function setup(){
createCanvas(600,600);
background(200);
}
function draw(){
ellipse(110,70,80,50);
ellipse(250,70,50,80);
ellipse(mouseX,mouseY,80,80);
}
function draw() {
beginShape();
vertex(160,20);
vertex(200,120);
vertex(300,120);
vertex(220,185);
vertex(260,300);
vertex(160,235);
vertex(60,300);
vertex(100,185);
vertex(20,120);
vertex(120,120);
endShape(CLOSE);
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.min.js"></script>