I am having a really hard time trying to figure it how to do this code, especially how to move the center. Please help!
- EddieJLv 75 months ago
Are you interested in doing this in a legitimate manner, or have you committed to attempting to use an improper procedure involving someone providing you with a core dump?
You can use
turtle.setpos (x, y)
You should give your turtle a different name:
myTurtle = turtle.Turtle ()
t1 = turtle.Turtle ()
and then change the references.
colors = ['green', 'black', 'blue', 'red', 'yellow']
def origin_circle (turtle, radius):
... rad = radius * len (colors)
... for col in colors:
... ... turtle.dot (rad, col)
... ... rad -= radius #(augmented operator)#
turtle1.setpos (-50, 100)
origin_circle (turtle1, 50)