-
Notifications
You must be signed in to change notification settings - Fork 0
/
supplements.py
62 lines (46 loc) · 1.72 KB
/
supplements.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
from manim import *
class Casper(VGroup):
def __init__(self):
super().__init__()
circle1 = Circle(color=BLUE, fill_opacity=.95)
circle2= Circle(color=WHITE, fill_opacity=1)
circle3= Circle(color=WHITE, fill_opacity=1)
square = Square()
triangle = Triangle(color=LIGHT_BROWN, fill_opacity=1)
triangle2 = Triangle()
circle1.width=2
circle1.thickness=3
circle2.scale(0.2)
circle2.set_stroke( width=1.25)
circle2.shift(LEFT* .5)
circle3.scale(0.2)
circle3.set_stroke( width=1.25)
circle3.shift(RIGHT* .5)
circle4 = Circle(color=BLACK, fill_opacity=.75)
circle4.scale(0.155)
circle4.set_stroke( width=1.25)
circle4.shift(LEFT* .55)
circle5=Circle(color=BLACK, fill_opacity=.75)
circle5.scale(0.155)
circle5.set_stroke( width=1.25)
circle5.shift(RIGHT* .45)
square.shift(DOWN *1.75)
square.scale(.75)
triangle.shift(UP *.65, RIGHT *.42)
triangle.scale(.95)
triangle.rotate(1.5)
triangle.border=2
triangle2.shift( DOWN* 2)
triangle2.rotate(PI)
triangle2.scale(.45)
smile = Arc(angle=.75*PI, radius=.2)
smile.rotate(1.15*PI)
smile.shift(DOWN * .65)
a = [2, 0, 0]
b = [0, 1.75, 0]
c = [0, 0, 1.75]
ap1 = ArcPolygon(a, b, c, radius=2, color=BLUE, fill_opacity=.75)
ap_group = VGroup(ap1).arrange()
ap_group.shift(DOWN * 1.75)
ap_group.rotate( 1.65* PI * .75)
self.add(ap_group, triangle2, circle1, circle2, circle3, circle4, circle5, triangle, smile)