Skip to content

Commit

Permalink
add Docstring to CodeTransform class
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindev27 committed Jan 17, 2025
1 parent 367b2ae commit 7f07384
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manim/mobject/text/code_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ def find_line_matches(before: Code, after: Code):


class CodeTransform(AnimationGroup):
"""
An animation that smoothly transitions between two Code objects.
PARAMETERS
----------
before : Code
The initial Code object.
after : Code
The target Code object after the transition.
"""

def __init__(self, before: Code, after: Code, **kwargs):
matches, deletions, additions = find_line_matches(before, after)

Expand Down

0 comments on commit 7f07384

Please sign in to comment.