Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain .Transform vs .ReplacementTransform in quickstart examples #3500

Merged
merged 13 commits into from
Dec 10, 2023
Merged
Prev Previous commit
Next Next commit
Added a->b->c example
  • Loading branch information
JasonGrace2282 committed Dec 9, 2023
commit c862f2de3b55236be2bfc90935be7d481e70a0b1
15 changes: 15 additions & 0 deletions docs/source/tutorials/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,21 @@ The use of ``ReplacementTransform`` or ``Transform`` is mostly up to personal pr
self.wait(0.5) # wait for 0.5 seconds
self.replacement_transform()


However, in some cases it is more beneficial to use ``Transform``, like when you are transforming several mobjects one after the other.

.. manim:: TransformCycle

class TransformCycle(Scene):
def construct(self):
a = Circle()
t1 = Square()
t2 = Triangle()
self.add(a)
self.wait()
for t in [t1,t2]:
self.play(Transform(a,t))

************
You're done!
************
Expand Down
Loading