CodePudding user response:
Don't too can realize, think of way can redraw quicklyCodePudding user response:
S=turtle. Shape (" compound ")Poly1=((0, 0), (100-5), (0, 30), and (5) - 100, -)
S.a ddcomponent (poly1, "red", "blue")
Poly2=((0, 0), (100-10), (- 100-10))
S.a ddcomponent (poly2, "blue", "red")
Turtle. Register_shape (" myshape ", s)
Time. Sleep (0.5)
Turtle. Penup ()
Turtle. Fd (100)
# amplification factor
Turtle. Shapesize (2, 2)
Turtle. Shape (" circle ")
Turtle. Shapesize (4, 4)
Turtle. Shape (" circle ")
Turtle. Shape (" myshape ")
Time. Sleep (0.5)
Turtle. Goto (100100)
Turtle. Shape (" circle ")
Time. Sleep (0.5)
Turtle. Shape (" myshape ")
Time. Sleep (0.5)
Turtle. Goto (200-200)
Turtle. Shape (" circle ")
Time. Sleep (0.5)
Turtle. Shape (" myshape ")
Time. Sleep (5)
Yes, with a definition
CodePudding user response:
For I in range (20200, 1) :Turtle. Goto (I, I)
Turtle. Shape (" myshape ")
It is smooth