Borrar filtros
Borrar filtros

How can comet3 be modified to have a disappearing tail?

2 visualizaciones (últimos 30 días)
i am not sure how to get the lines which are left behind in comet3 to disappear as the comet moves forward. My goal is to have it repeat a full run a few times and delete the tail as it travels.
i see the section marked 'clean up the tail' but i don't know what to add to that to actually clean it up... and thoughts?

Respuesta aceptada

Paulo Silva
Paulo Silva el 12 de Jun. de 2011
edit comet3
change all the erasemodes to background, it's in the line functions, example:
'erase','none' -> 'erase','background'
Now change the function name to comet33 on the first line and save it as comet33.m
  1 comentario
Adam Quintero
Adam Quintero el 12 de Jun. de 2011
Setting the 'erase' mode of the tail settings to 'background' did the trick. thank you.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Animation en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by