How can I make an ellipse that leaves behind a “trail”?
You can use background (0, 10); so that the ellipses
are overwritten but weakly
ellipse(mouseX, mouseY, 6,6);
There are resources (tutorials, references and examples) here:
There is an example in there for this.
This will also work in a sketch with
draw() and no
circle(frameCount, frameCount, 5); println(frameCount); fill(230, 5); // The 5 is alpha! Look this up in the color tutorial. rect (0, 0, width, height);
- https://processing.org/tutorials/color < transparence/alpha discussed here
You can’t use an alpha component with background().
There is a note about that here:
Or use rect with fill(0,10);