본문 바로가기

Programming/Manim code

[007]mob.get_left/mob.get_right

반응형
        rect = Rectangle(width=1.5, height=1)
        you_label = TextMobject("you")
        you_label.next_to(rect, RIGHT, MED_LARGE_BUFF)
        arrow = Arrow(you_label.get_left(), rect.get_right() + 0.5 * LEFT, buff=0.1)

        self.add(rect,you_label, arrow)
        self.wait()

반응형

'Programming > Manim code' 카테고리의 다른 글

[010]save_state/restore  (0) 2020.05.05
[008]align_to/arrange/arrange_in_grid  (0) 2020.05.05
[006]Example: Coordinate Methods  (0) 2020.05.05
[005]mob.shift  (0) 2020.05.05
[004]mob.next_to  (0) 2020.05.05