Created
March 9, 2019 23:19
-
-
Save jaddoescad/c374a67a8e56352e163d63a99432b4c2 to your computer and use it in GitHub Desktop.
drawing a polygon with manim
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 | |
] | |
poly = Polygon(*Hexagon) | |
self.play(ShowCreation(poly)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment