Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import turtle
- wn=turtle.Screen(800,800)
- wn.bgcolor("light green")
- tom = turtle.Turtle()
- tom.shape("turtle")
- tom.width(4)
- tom.penup()
- tom.goto(0,60)
- tom.pendown()
- tom.color("blue")
- def drawCircle(self, x, y, radius=50):
- """
- Moves the turtle to the correct position and draws a circle
- """
- tom.penup()
- tom.setposition(x, y)
- tom.pendown()
- tom.circle(radius)
- drawCircle(75, 75, 20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement