manim icon indicating copy to clipboard operation
manim copied to clipboard

Rename ``.ReplacementTransform`` and ``.Transform`` to minimize confusion.

Open JasonGrace2282 opened this issue 2 years ago • 3 comments

Oftentimes people will get confused as to the difference between ReplacementTransform and Transform due to their similar names. It might be beneficial to rename them to something else. After brainstorming, some possible names for ReplacementTransform are:

  • Become
  • Replace

and for Transform:

  • ShapeShift
  • Morph

My personal favorite is Morph ;)

What do you think? It would be nice to have as many opinions as possible since these animations are very commonly used. CC @chopan050

You can read the original conversation starting here

JasonGrace2282 avatar Dec 02 '23 19:12 JasonGrace2282

I personally like Become and Morph. We just have to make sure that Become has the same behavior as Mobject.become.

Nikhil-42 avatar Dec 03 '23 16:12 Nikhil-42

Oh great! I haven't seen this. I also opened a similar discussion on the help forum on discord one minute ago. :/

ubaldot avatar Dec 09 '23 08:12 ubaldot

Another option could be TransformThenReplace or MorphThenReplace for ReplacementTransform. Using Become might create a confusion with Mobject.become(), although I'd vote for renaming that method to Mobject.morph_into(), because it makes more explicit that the Mobject is changing its shape and color to match a 2nd Mobject, without actually being that 2nd object.

chopan050 avatar Dec 01 '24 21:12 chopan050