-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqrcode.py
More file actions
34 lines (29 loc) · 1.05 KB
/
qrcode.py
File metadata and controls
34 lines (29 loc) · 1.05 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
from manim import *
config.background_color = BLACK
class WritingText(Scene):
def construct(self):
text = Text("QR", font="Advanced Pixel-7").scale(2)
self.play(Write(text))
self.play(Transform(text, Text("Quick Response", font="Advanced Pixel-7").scale(2)))
self.wait(1)
class QRCode(Scene):
def construct(self):
qr = SVGMobject("C:\\Users\\Pedro\\Downloads\\qrcode3.svg")
self.play(Write(qr), run_time=5)
class BarCode(Scene):
def construct(self):
qr = SVGMobject("C:\\Users\\Pedro\\Downloads\\barcode.svg")
self.play(Write(qr), run_time=5)
self.wait(1)
class BigQRCode(Scene):
def construct(self):
qr = SVGMobject("C:\\Users\\Pedro\\Downloads\\QR_Code_Version_25.svg").scale(4)
self.play(Write(qr))
# self.add(qr)
self.wait(1)
class BigQRCode2(Scene):
def construct(self):
qr = SVGMobject("C:\\Users\\Pedro\\Downloads\\QR_Code_Version_25.svg").scale(4)
self.play(Write(qr), run_time=5)
# self.add(qr)
self.wait(1)