So I'm doing a project for my class and right now I have a looping function to draw a flower that switches between two petal types when you click on the flower's center. One petal type is longer and a different color. When I switch to the second petal type the original petals stay there and I want them to dissapear when I switch between the two. How do I erase what I've drawn? I can't use a background to cover it up, because it will keep drawing it after each individual petal.