Created
November 20, 2017 19:18
-
-
Save lkmandy/f9c6d6c69f7132867e9af31a7d6e3901 to your computer and use it in GitHub Desktop.
SquareFromCircle created by likhene - https://repl.it/@likhene/SquareFromCircle
This file contains hidden or 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
| iimport turtle | |
| mandy_turtle = turtle.Turtle() | |
| def squareCircle( length, angle1, angle2 ): | |
| mandy_turtle.forward(length) | |
| mandy_turtle.right(angle1) | |
| mandy_turtle.forward(length) | |
| mandy_turtle.right(angle1) | |
| mandy_turtle.forward(length) | |
| mandy_turtle.right(angle1) | |
| mandy_turtle.forward(length) | |
| mandy_turtle.right(angle2) | |
| for i in range(100): | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script creates a circle from a square.
Basically playing around with angles, looping and functions