필터 지우기
필터 지우기

How can comet3 be modified to have a disappearing tail?

조회 수: 2 (최근 30일)
Adam Quintero
Adam Quintero 2011년 6월 12일
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?

채택된 답변

Paulo Silva
Paulo Silva 2011년 6월 12일
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
Adam Quintero
Adam Quintero 2011년 6월 12일
Setting the 'erase' mode of the tail settings to 'background' did the trick. thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by