Skip to content

Commit 3f7fb8d

Browse files
committed
fix formatting of lists in rendered documentation
1 parent bcab73a commit 3f7fb8d

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

manim/utils/color/core.py

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,34 +31,35 @@
3131
To implement a custom color space, you must subclass :class:`ManimColor` and implement
3232
three important methods:
3333
34-
- :attr:`~.ManimColor._internal_value`: a ``@property`` implemented on
35-
:class:`ManimColor` with the goal of keeping a consistent internal representation
36-
which can be referenced by other functions in :class:`ManimColor`. This property acts
37-
as a proxy to whatever representation you need in your class.
34+
- :attr:`~.ManimColor._internal_value`: a ``@property`` implemented on
35+
:class:`ManimColor` with the goal of keeping a consistent internal representation
36+
which can be referenced by other functions in :class:`ManimColor`. This property acts
37+
as a proxy to whatever representation you need in your class.
3838
39-
- The getter should always return a NumPy array in the format ``[r,g,b,a]``, in
40-
accordance with the type :class:`ManimColorInternal`.
39+
- The getter should always return a NumPy array in the format ``[r,g,b,a]``, in
40+
accordance with the type :class:`ManimColorInternal`.
4141
42-
- The setter should always accept a value in the format ``[r,g,b,a]`` which can be
43-
converted to whatever attributes you need.
42+
- The setter should always accept a value in the format ``[r,g,b,a]`` which can be
43+
converted to whatever attributes you need.
4444
45-
- :attr:`~ManimColor._internal_space`: a read-only ``@property`` implemented on
46-
:class:`ManimColor` with the goal of providing a useful representation which can be
47-
used by operators, interpolation and color transform functions.
45+
- :attr:`~ManimColor._internal_space`: a read-only ``@property`` implemented on
46+
:class:`ManimColor` with the goal of providing a useful representation which can be
47+
used by operators, interpolation and color transform functions.
4848
49-
The only constraints on this value are:
49+
The only constraints on this value are:
5050
51-
- It must be a NumPy array.
51+
- It must be a NumPy array.
5252
53-
- The last value must be the opacity in a range ``0.0`` to ``1.0``.
53+
- The last value must be the opacity in a range ``0.0`` to ``1.0``.
5454
55-
Additionally, your ``__init__`` must support this format as an initialization value
56-
without additional parameters to ensure correct functionality of all other methods in
57-
:class:`ManimColor`.
55+
Additionally, your ``__init__`` must support this format as an initialization value
56+
without additional parameters to ensure correct functionality of all other methods in
57+
:class:`ManimColor`.
58+
59+
- :meth:`~ManimColor._from_internal`: a ``@classmethod`` which converts an
60+
``[r,g,b,a]`` value into suitable parameters for your ``__init__`` method and calls
61+
the ``cls`` parameter.
5862
59-
- :meth:`~ManimColor._from_internal`: a ``@classmethod`` which converts an
60-
``[r,g,b,a]`` value into suitable parameters for your ``__init__`` method and calls
61-
the ``cls`` parameter.
6263
"""
6364

6465
from __future__ import annotations

0 commit comments

Comments
 (0)