manim/tests/module/utils
thehugwizard 593010b87b
Bugfix: HSL color ordering in ManimColor (#4202)
* Bugfix: colorsys uses HLS (hue, luminance, saturation) ordering when converting to/from rgb. Manim says it uses HSL ordering. Fixed order of parameters in call to colorsys for ManimColor.from_hsl and ManimColor.to_hsl.
Added tests ensure correct HSL ordering.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update to fix the correct color tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: SonnyRoomex <sonny.campbell@roomex.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Aarush Deshpande <110117391+JasonGrace2282@users.noreply.github.com>
2025-04-21 01:46:59 +00:00
..
_split_matrices.py Created and optimized Bézier splitting functions such as partial_bezier_points() in manim.utils.bezier (#3766) 2024-05-21 05:26:59 +00:00
_subdivision_matrices.py Created and optimized Bézier splitting functions such as partial_bezier_points() in manim.utils.bezier (#3766) 2024-05-21 05:26:59 +00:00
test_bezier.py Fix of ImageMobject opacity bug (#4089) 2025-01-19 16:56:47 +01:00
test_color.py Add __hash__ to ManimColor (#4051) 2025-01-19 18:09:26 +01:00
test_deprecation.py Standardize docstrings with ruff pydocstyle rules (#3881) 2024-09-01 08:03:38 -04:00
test_file_ops.py Migrate more os.path to pathlib in tests (#2991) 2022-10-26 19:51:38 +02:00
test_hashing.py Refactor tests (#2866) 2022-07-09 21:10:30 +00:00
test_manim_color.py Bugfix: HSL color ordering in ManimColor (#4202) 2025-04-21 01:46:59 +00:00
test_space_ops.py Add Ruff Lint (#3780) 2024-06-03 23:39:08 -04:00
test_tex.py Fixed Tex environment doubling braces (#4159) 2025-02-09 11:56:59 -05:00
test_units.py Change from tempconfig to a config fixture in tests (#3853) 2024-07-12 22:41:51 +02:00