mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Window closing fix (#8625)
* The window will now remain open after the fractal is finished being drawn, and will only close upon your click. * Update fractals/sierpinski_triangle.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
f8fe72dc37
commit
f7c5e55609
|
@ -82,3 +82,4 @@ if __name__ == "__main__":
|
|||
|
||||
vertices = [(-175, -125), (0, 175), (175, -125)] # vertices of triangle
|
||||
triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))
|
||||
turtle.Screen().exitonclick()
|
||||
|
|
Loading…
Reference in New Issue
Block a user