File size: 1,512 Bytes
dc00adb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | # debug
Debugging utilities.
### Functions
### index_labels(mobject, label_height=0.15, background_stroke_width=5, background_stroke_color=ManimColor('#000000'), \*\*kwargs)
Returns a [`VGroup`](manim.mobject.types.vectorized_mobject.VGroup.md#manim.mobject.types.vectorized_mobject.VGroup) of [`Integer`](manim.mobject.text.numbers.Integer.md#manim.mobject.text.numbers.Integer) mobjects
that shows the index of each submobject.
Useful for working with parts of complicated mobjects.
* **Parameters:**
* **mobject** ([*Mobject*](manim.mobject.mobject.Mobject.md#manim.mobject.mobject.Mobject)) β The mobject that will have its submobjects labelled.
* **label_height** (*float*) β The height of the labels, by default 0.15.
* **background_stroke_width** (*float*) β The stroke width of the outline of the labels, by default 5.
* **background_stroke_color** ([*ManimColor*](manim.utils.color.core.ManimColor.md#manim.utils.color.core.ManimColor)) β The stroke color of the outline of labels.
* **kwargs** (*Any*) β Additional parameters to be passed into the :class\`~.Integer\`
mobjects used to construct the labels.
* **Return type:**
[*VGroup*](manim.mobject.types.vectorized_mobject.VGroup.md#manim.mobject.types.vectorized_mobject.VGroup)
### Examples
### print_family(mobject, n_tabs=0)
For debugging purposes
* **Parameters:**
* **mobject** ([*Mobject*](manim.mobject.mobject.Mobject.md#manim.mobject.mobject.Mobject))
* **n_tabs** (*int*)
* **Return type:**
None
|