MCPcopy Index your code
hub / github.com/ManimCommunity/manim / __init__

Method __init__

manim/mobject/table.py:1050–1069  ·  view source on GitHub ↗

Special case of :class:`~.Table` with ``element_to_mobject`` set to an identity function. Here, every item in ``table`` must already be of type :class:`~.Mobject`. Parameters ---------- table A 2D array or list of lists. Content of the table must

(
        self,
        table: Iterable[Iterable[VMobject]],
        element_to_mobject: Callable[[VMobject], VMobject] = lambda m: m,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

1048 """
1049
1050 def __init__(
1051 self,
1052 table: Iterable[Iterable[VMobject]],
1053 element_to_mobject: Callable[[VMobject], VMobject] = lambda m: m,
1054 **kwargs,
1055 ):
1056 """
1057 Special case of :class:`~.Table` with ``element_to_mobject`` set to an identity function.
1058 Here, every item in ``table`` must already be of type :class:`~.Mobject`.
1059
1060 Parameters
1061 ----------
1062 table
1063 A 2D array or list of lists. Content of the table must be of type :class:`~.Mobject`.
1064 element_to_mobject
1065 The :class:`~.Mobject` class applied to the table entries. Set as ``lambda m : m`` to return itself.
1066 kwargs
1067 Additional arguments to be passed to :class:`~.Table`.
1068 """
1069 super().__init__(table, element_to_mobject=element_to_mobject, **kwargs)
1070
1071
1072class IntegerTable(Table):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected