Skip to content

Instantly share code, notes, and snippets.

@sweetlearn
Created February 16, 2017 05:41
Show Gist options
  • Select an option

  • Save sweetlearn/c579778effb5db6bee293be3cdad5514 to your computer and use it in GitHub Desktop.

Select an option

Save sweetlearn/c579778effb5db6bee293be3cdad5514 to your computer and use it in GitHub Desktop.
python turtle example
#import turtle
import turtle
wn = turtle.Screen()
wn.bgcolor("red")
tess = turtle.Turtle()
tess.shape("turtle")
tess.color("blue")
tess.penup() # This is new
size = 30
for i in range(90):
tess.stamp() # Leave an impression on the canvas
size = size + 2 # Increase the size on every iteration
tess.forward(size) # Move tess along
tess.right(50) # ... and turn her
wn.mainloop()
@sweetlearn
Copy link
Author

just for fun !!!

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