自定义工具函数

debugTeX.py

manim_sandbox.utils.functions.debugTeX.debugTeX(self, texm, scale_factor=0.6, text_color='#9A72AC')

用于显示TexMobject或TextMobject的下标,用法:

text = TextMobject("abc")
self.add(text)
debugTeX(self, text[0])

calculation.py

manim_sandbox.utils.functions.calculation.get_intersect(line1, line2, parallel)

获取两直线 line1, line2 的交点,如果平行,则返回 parallel

以下是一些rate_func

manim_sandbox.utils.functions.calculation.easeOutBounce(t)
manim_sandbox.utils.functions.calculation.easeInBounce(t)
manim_sandbox.utils.functions.calculation.easeInOutBounce(t)
manim_sandbox.utils.functions.calculation.easeOutElastic(t)