In answer to https://stackoverflow.com/questions/71318333/why-is-this-permanent-trail-being-left-on-the-background-p5-canvas
The issue here is the way color blending works in canvas. The default blend mode is source-over
which is defined as the following:
co = αs x Cs + αb x Cb x (1 – αs)
αo = αs + αb x (1 – αs)
Given the definitions:
| Symbol | Description |