-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogo.py
42 lines (40 loc) · 1.29 KB
/
logo.py
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
36
37
38
39
40
41
42
from manim import *
class ManimTutorialLogo(Scene):
def construct(self):
tex_template = TexTemplate()
tex_template.add_to_preamble(r"\usepackage{fontawesome5}")
self.camera.background_color = "#ffffff"
logo_green = "#87c2a5"
logo_blue = "#525893"
logo_red = "#e07a5f"
logo_black = "#343434"
ds_m = MathTex(r"\mathbb{M}", fill_color=logo_black).scale(7)
ds_m.shift(2.25 * LEFT + 1.5 * UP)
tutorial = MathTex(
r"\mathbb{T}\text{utorial}",
fill_color=logo_black,
).scale(4)
tutorial.next_to(ds_m, DOWN)
tutorial.shift(DOWN)
book = Tex(
r"\faBookReader",
fill_color=logo_black,
tex_template=tex_template,
).scale(5)
book.next_to(ds_m, LEFT)
book.shift(LEFT + 0.5 * DOWN)
circle = Circle(color=logo_green, fill_opacity=1).shift(LEFT)
square = Square(color=logo_blue, fill_opacity=1).shift(UP)
triangle = Triangle(color=logo_red, fill_opacity=1).shift(
RIGHT
)
logo = VGroup(
triangle,
square,
circle,
ds_m,
tutorial,
book,
) # order matters
logo.move_to(ORIGIN)
self.add(logo)