Drawn shapes stay after frame they were drawn?

I know this is really stupid. Why are shapes staying on screen even if they weren’t drawn this frame? This hasn’t happened on my other projects.
Basically my shapes are leaving trails of themselves.

1 Like

When you draw something on a new frame, you are not starting from scratch. The value of the pixels stays the same.

To get rid of the trail, you need to clear your previous frame at the beginning of each frame by calling background(0) for example.

1 Like

Ah that is what’s different from my other projects, a small thing but big difference.