mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 13:34:19 +08:00
80% through cube example
This commit is contained in:
@ -130,11 +130,12 @@ class TextMobject(TexMobject):
|
||||
class Brace(TexMobject):
|
||||
CONFIG = {
|
||||
"buff" : 0.2,
|
||||
"n_quads" : 3,
|
||||
"tex_string" : "\\underbrace{%s}"%(3*"\\qquad"),
|
||||
}
|
||||
TEX_STRING = "\\underbrace{%s}"%(3*"\\qquad")
|
||||
def __init__(self, mobject, direction = DOWN, **kwargs):
|
||||
digest_config(self, kwargs, locals())
|
||||
TexMobject.__init__(self, self.TEX_STRING, **kwargs)
|
||||
TexMobject.__init__(self, self.tex_string, **kwargs)
|
||||
angle = -np.arctan2(*direction[:2]) + np.pi
|
||||
mobject.rotate(-angle)
|
||||
left = mobject.get_corner(DOWN+LEFT)
|
||||
|
Reference in New Issue
Block a user