Ellipse and trail

How can I make an ellipse that leaves behind a “trail”?

1 Like

You can use background (0, 10); so that the ellipses
are overwritten but weakly

ellipse(mouseX, mouseY, 6,6);

2 Likes

Hello @Ero,

There are resources (tutorials, references and examples) here:
https://processing.org/

There is an example in there for this.

This will also work in a sketch with draw() and no background():

  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);

Have fun!

References:

:)

Hello @Chrisir,

You can’t use an alpha component with background().

There is a note about that here:
https://processing.org/reference/background_.html

:)

Or use rect with fill(0,10);

1 Like