This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DrawCircle(Scene): | |
def construct(self): | |
circle = Circle(color=WHITE,radius=1) | |
self.play(ShowCreation(circle)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
class DrawCircle(Scene): | |
def construct(self): | |
circle = Circle(color=WHITE,radius=1) | |
self.play(ShowCreation(circle)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
def set_background(self): | |
background = Rectangle( | |
width = FRAME_WIDTH, | |
height = FRAME_HEIGHT, | |
stroke_width = 0, | |
fill_color = "#3E746F", | |
fill_opacity = 1) | |
self.add(background) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
class DrawLine(Scene): | |
def construct(self): | |
START = (0,0,0) | |
END = (4,0,0) | |
line = Line(START,END); | |
self.play(ShowCreation(line)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
class DrawRectangle(Scene): | |
def construct(self): | |
rect = Rectangle(height=3,width=4) | |
self.play(ShowCreation(rect)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
class DrawPolygon(Scene): | |
def construct(self): | |
Hexagon = [(0,0,0), #P1 | |
(1,1,0), #P2 | |
(2,1,0), #P3 | |
(3,0,0), #P4 | |
(2,-1,0), #P5 | |
(1,-1,0) #P6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
# Move shapes | |
class DrawVector(Scene): | |
def construct(self): | |
vector = Vector(direction=UP) | |
self.play(ShowCreation(vector)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
# Move shapes | |
class DrawArc(Scene): | |
def construct(self): | |
angle = math.radians(180) | |
arc = Arc(radius=2,angle=angle) | |
self.play(ShowCreation(arc)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
# Move shapes | |
class MoveCircle(Scene): | |
def construct(self): | |
circle = Circle(radius=1,color=RED) | |
end_point = (3,0,0) | |
animation = ApplyMethod(circle.shift, end_point) | |
self.play(animation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from big_ol_pile_of_manim_imports import * | |
# Move shapes | |
class MoveVector(Scene): | |
def construct(self): | |
vector = Vector(direction=RIGHT) | |
end_point = (4,0,0) | |
animation = ApplyMethod(vector.shift,end_point) | |
self.play(animation) |
OlderNewer