Skip to content

renamed fade_to to fade_to_color and added docstring to method: fade_to_color and method: fade#4665

Open
GoThrones wants to merge 2 commits intoManimCommunity:mainfrom
GoThrones:refactor/fade
Open

renamed fade_to to fade_to_color and added docstring to method: fade_to_color and method: fade#4665
GoThrones wants to merge 2 commits intoManimCommunity:mainfrom
GoThrones:refactor/fade

Conversation

@GoThrones
Copy link
Copy Markdown
Contributor

@GoThrones GoThrones commented Mar 30, 2026

Overview: What does this pull request change?

This PR renames the method fade_to to fade_to_color and adds docstrings to the methods: fade_to, fade and get_num_points.

Motivation and Explanation: Why and how do your changes improve the library?

There was no docstring in either of the above mentioned methods and also, the name of the method: fade_to seemed somehow incomplete. It wasn't clear what is being faded by this method. The renamed method is fade_to_color. It makes it clear to understand that only the color is being changed.

Reviewer Checklist

  • The PR title is descriptive enough for the changelog, and the PR is labeled correctly
  • If applicable: newly added non-private functions and classes have a docstring including a short summary and a PARAMETERS section
  • If applicable: newly added functions and classes are tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant