mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
12 lines
314 B
Python
12 lines
314 B
Python
![]() |
from mobject.types.vectorized_mobject import *
|
||
|
|
||
|
class BinaryOption(VMobject):
|
||
|
|
||
|
def __init__(self, mob1, mob2, **kwargs):
|
||
|
|
||
|
VMobject.__init__(self, **kwargs)
|
||
|
text = TextMobject("or").scale(0.5)
|
||
|
mob1.next_to(text, LEFT)
|
||
|
mob2.next_to(text, RIGHT)
|
||
|
self.add(mob1, text, mob2)
|