Skip to content

Instantly share code, notes, and snippets.

@mauro-balades
Last active September 5, 2023 13:25
Show Gist options
  • Save mauro-balades/a977d2a2fce42734862f57fd45841bc4 to your computer and use it in GitHub Desktop.
Save mauro-balades/a977d2a2fce42734862f57fd45841bc4 to your computer and use it in GitHub Desktop.
Nice python turtle shape
import turtle as sneaky_turtle
sneaky_turtle.speed(0)
i = 120/2
while True:
for i in range(6):
sneaky_turtle.forward(100)
sneaky_turtle.left(360/6)
sneaky_turtle.left(i/2)
i *= 2
@mauro-balades
Copy link
Author

change .left to any value you want for the shape depth!

https://trinket.io/python/8ac438b56c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment