Draw() overlay shapes on the canvas

Hi, I’m writing a code to call another custom render function I created inside the draw() to render shapes (which is essentially a bunch of ellipses) on the screen. But, it draws shapes on top of each other and doesn’t reset the canvas for each iteration of draw(). If I put clear() at the end of draw(), it essentially keeps showing nothing on the canvas… What do you think the problem is?

Thank you :slight_smile:

The first thing inside draw() should be a call to background().

The sketch does not automatically clear what was drawn previously.