Skip to content

Circumscribe shows shape after animation if run_time is passed outside the Circumscribe instance and is different than 1 #2563

Closed
@JeroSQ

Description

@JeroSQ

Description of bug / unexpected behavior

If the run_time argument is passed to Scene.play() instead of passing it directly to Circumscribe AND the run_time is different than 1, the shape will be added after the animation, like it did in #2349 , only that now the shape is removed, but is still visible for some time.

This works fine

self.play(Circumscribe(text), run_time=1)
self.play(Circumscribe(text, run_time=2))
self.play(Circumscribe(text, run_time=0.5))

This doesn't

self.play(Circumscribe(text), run_time=2)
self.play(Circumscribe(text), run_time=0.5)

May or may not have to do with #2396. I haven't checked this, but I remember this working fine a some months ago.

Expected behavior

The animation should work properly regardless of where run_time is passed.

How to reproduce the issue

Code for reproducing the problem
class CircumscribeBug(Scene):
    def construct(self):
        text = Tex("Works").set_color(GREEN)

        self.add(text)
        # Works
        self.play(Circumscribe(text), run_time=1)
        self.play(Circumscribe(text, run_time=2))
        self.play(Circumscribe(text, run_time=0.5))
        self.wait(0.5)

        text.set_color(RED)
        # Doesn't
        self.play(Circumscribe(text), run_time=2)
        self.wait()
        self.play(Circumscribe(text), run_time=0.5)
        self.wait(0.5)

Additional media files

Images/GIFs
CircumscribeBug.mp4

Logs

Terminal output
PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR

System specifications

System Details
  • OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)):
  • RAM:
  • Python version (python/py/python3 --version):
  • Installed modules (provide output from pip list):
PASTE HERE
LaTeX details
  • LaTeX distribution (e.g. TeX Live 2020):
  • Installed LaTeX packages:
FFMPEG

Output of ffmpeg -version:

PASTE HERE

Additional comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue:bugSomething isn't working... For use in issues

    Type

    No type

    Projects

    Status

    ❌ Rejected

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions