Skip to content
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e663946
Experimenting with an HSL class
MrDiver Dec 10, 2023
bf5c699
Merge branch 'main' into color_experiments
JasonGrace2282 Dec 27, 2023
3cebc3e
Add some more functionality
MrDiver Jul 21, 2024
16f7391
Adding a lot of tests and implementing fully functional conversion be…
MrDiver Jul 24, 2024
fed7ba5
Fix Merge
MrDiver Jul 24, 2024
f9e6fa2
Fixing tests
MrDiver Jul 24, 2024
91f203c
Fixing typing
MrDiver Jul 24, 2024
6de137f
return str to normal
MrDiver Jul 24, 2024
c6dbf3c
Additional documentation
MrDiver Jul 25, 2024
6b05c25
Update manim/utils/color/core.py
MrDiver Jul 25, 2024
2a6687a
Update manim/utils/color/core.py
MrDiver Jul 25, 2024
417771f
Update manim/utils/color/core.py
MrDiver Jul 25, 2024
d7f2eb7
Update manim/utils/color/core.py
MrDiver Jul 25, 2024
f734202
Fix documentation and typing and revamp operators to respect color sp…
MrDiver Jul 25, 2024
a38cf7f
Fix color operator typing and add operator tests
MrDiver Jul 25, 2024
892cdd7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 25, 2024
1fcf19c
Fix typeguard
MrDiver Jul 25, 2024
3e8c598
Merge branch 'color_experiments' of github.com:MrDiver/manim into col…
MrDiver Jul 25, 2024
7955087
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 25, 2024
49ea0a3
Import ManimFloat
MrDiver Jul 25, 2024
281a356
Merge branch 'color_experiments' of github.com:MrDiver/manim into col…
MrDiver Jul 25, 2024
e8ab6e7
Update manim/utils/color/core.py
MrDiver Jul 25, 2024
68dcb4b
Update manim/utils/color/core.py
MrDiver Jul 25, 2024
a6cafac
Add docstring to _internal_space
MrDiver Jul 25, 2024
1902772
Merge branch 'color_experiments' of github.com:MrDiver/manim into col…
MrDiver Jul 25, 2024
ff125ba
naming of functions according to pep8
MrDiver Jul 25, 2024
04dba5e
Merge branch 'main' into color_experiments
MrDiver Jul 25, 2024
a34e00c
Fix naming
MrDiver Jul 25, 2024
6b03c9c
Update manim/utils/color/core.py
MrDiver Jul 25, 2024
a40cb86
Update manim/utils/color/core.py
MrDiver Jul 25, 2024
b63d85a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions manim/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
"RGBA_Tuple_Int",
"HSV_Array_Float",
"HSV_Tuple_Float",
"HSL_Array_Float",
"HSL_Tuple_Float",
"HSVA_Array_Float",
"HSVA_Tuple_Float",
"ManimColorInternal",
"PointDType",
"InternalPoint2D",
Expand Down Expand Up @@ -215,6 +219,46 @@
Brightness) in the represented color.
"""

HSVA_Array_Float: TypeAlias = RGBA_Array_Float
"""``shape: (4,)``

A :class:`numpy.ndarray` of 4 floats between 0 and 1, representing a
color in HSVA (or HSBA) format.

Its components describe, in order, the Hue, Saturation and Value (or
Brightness) in the represented color.
"""

HSVA_Tuple_Float: TypeAlias = RGBA_Tuple_Float
"""``shape: (4,)``

A tuple of 4 floats between 0 and 1, representing a color in HSVA (or
HSBA) format.

Its components describe, in order, the Hue, Saturation and Value (or
Brightness) in the represented color.
"""

HSL_Array_Float: TypeAlias = RGB_Array_Float
"""``shape: (3,)``

A :class:`numpy.ndarray` of 3 floats between 0 and 1, representing a
color in HSL format.

Its components describe, in order, the Hue, Saturation and Lightness
in the represented color.
"""

HSL_Tuple_Float: TypeAlias = RGB_Tuple_Float
"""``shape: (3,)``

A :class:`numpy.ndarray` of 3 floats between 0 and 1, representing a
color in HSL format.

Its components describe, in order, the Hue, Saturation and Lightness
in the represented color.
"""

ManimColorInternal: TypeAlias = RGBA_Array_Float
"""``shape: (4,)``

Expand Down
Loading