Skip to content

Commit b36cdb1

Browse files
huguesdevimeuxHugues Devimeuxkolibril13leotrs
authored
added typings and docs for vectorized mobjects and bezier related functions (#961)
* added typings and docs for vectorized mobjects and bezier related functions * woops fixed mistake * fixed tests and run black * Merge branch 'added-docs-deep-functions' of github.com:huguesdevimeux/manim into added-docs-deep-functions * applied @leotrs suggestion * run black * Update manim/mobject/geometry.py Co-authored-by: Leo Torres <[email protected]> Co-authored-by: Hugues Devimeux <[email protected]> Co-authored-by: kolibril13 <[email protected]> Co-authored-by: Leo Torres <[email protected]>
1 parent 60c225a commit b36cdb1

File tree

3 files changed

+362
-45
lines changed

3 files changed

+362
-45
lines changed

manim/mobject/geometry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,7 @@ def __init__(self, points, **kwargs):
919919
class Polygon(VMobject):
920920
def __init__(self, *vertices, color=BLUE, **kwargs):
921921
VMobject.__init__(self, color=color, **kwargs)
922+
# There are actually four corners, and the first one is repeated twice to form the four vertices.
922923
self.set_points_as_corners([*vertices, vertices[0]])
923924

924925
def get_vertices(self):

0 commit comments

Comments
 (0)