Skip to content

fix(color): implement ManimColor.gradient via color_gradient#4840

Open
Chessing234 wants to merge 1 commit into
ManimCommunity:mainfrom
Chessing234:fix/manim-color-gradient
Open

fix(color): implement ManimColor.gradient via color_gradient#4840
Chessing234 wants to merge 1 commit into
ManimCommunity:mainfrom
Chessing234:fix/manim-color-gradient

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • Implements ManimColor.gradient() by delegating to color_gradient instead of raising NotImplementedError
  • Returns a single ManimColor when length == 1, otherwise a list

Fixes #4802.

Test plan

  • pytest tests/module/utils/test_color_helpers.py -k manim_color_gradient --no-cov

Made with Cursor

Fixes ManimCommunity#4802. The static method now delegates to color_gradient instead
of raising NotImplementedError, returning a single color when length is 1.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

color: implement ManimColor.gradient() instead of raising NotImplementedError

1 participant