Repository navigation
Expand file tree
/
Copy pathGUI.py
More file actions
62 lines (49 loc) · 2.29 KB
/
Copy pathGUI.py
File metadata and controls
62 lines (49 loc) · 2.29 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from manim import *
class GUI(MovingCameraScene):
def construct(self):
U = Text("U")
G = Text("G").next_to(U, LEFT, buff=0.1)
I = Text("I").next_to(U, RIGHT, buff=0.1)
User = Text("User")
Graphical = Text("Graphical").next_to(User, LEFT, buff=0.1)
Interface = Text("Interface").next_to(User, RIGHT, buff=0.1)
graphical_user_interface = Text("Graphical User Interface")
self.play(Create(G), Create(I), Create(U))
# self.play(Create(U))
# self.play(Create(I))
self.play(Transform(G, Graphical), Transform(
U, User), Transform(I, Interface))
# self.play(Transform(G, graphical_user_interface), FadeOut(U), FadeOut(
# I))
self.play(FadeToColor(G, color=PURE_RED),
Wiggle(G), Flash(G, color=PURE_RED), FadeToColor(
I, color=PURE_BLUE),
Wiggle(I), Flash(U, color=PURE_BLUE), FadeToColor(
U, color=PURE_GREEN),
Wiggle(U), Flash(U, color=PURE_GREEN))
self.play(FadeOut(G), FadeOut(U), FadeOut(I))
# self.play(FadeToColor(U, color=GREEN_E),
# Wiggle(U), Flash(U, color=GREEN_E))
# self.play(FadeToColor(I, color=BLUE_B),
# Wiggle(I), Flash(U, color=BLUE_B))
class CLI(MovingCameraScene):
def construct(self):
L = Text("C")
C = Text("L").next_to(L, LEFT, buff=0.1)
I = Text("I").next_to(C, RIGHT, buff=0.1)
Command = Text("Control")
Line = Text("Interface").next_to(Command, RIGHT, buff=0.1)
self.play(Create(Command), Create(Line))
# self.play(Create(Line))
self.play(Transform(Command, C), Transform(Line, L), Create(I))
self.play(FadeToColor(C, color=PINK),
Wiggle(C), Flash(C, color=PINK), FadeToColor(
L, color=PINK),
Wiggle(L), Flash(L, color=BLUE_E), FadeToColor(
I, color=BLUE_E),
Wiggle(I), Flash(I, color=YELLOW))
self.play(FadeOut(C), FadeOut(L), FadeOut(I))
# self.play(FadeToColor(U, color=GREEN_E),
# Wiggle(U), Flash(U, color=GREEN_E))
# self.play(FadeToColor(I, color=BLUE_B),
# Wiggle(I), Flash(U, color=BLUE_B))