Skip to content

Instantly share code, notes, and snippets.

@jaddoescad
Created March 9, 2019 23:19
Show Gist options
  • Save jaddoescad/c374a67a8e56352e163d63a99432b4c2 to your computer and use it in GitHub Desktop.
Save jaddoescad/c374a67a8e56352e163d63a99432b4c2 to your computer and use it in GitHub Desktop.
drawing a polygon with manim
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