turtle.tracer()

turtle.tracer(n=None, delay=None)

Parameters:
  • n – nonnegative integer
  • delay – nonnegative integer

Turn turtle animation on/off and set delay for update drawings. If n is given, only each n-th regular screen update is really performed. (Can be used to accelerate the drawing of complex graphics.) When called without arguments, returns the currently stored value of n. Second argument sets delay value (see delay()).

>>> screen.tracer(8, 25)
>>> dist = 2
>>> for i in range(200):
...     fd(dist)
...     rt(90)
...     dist += 2
doc_python
2016-10-07 17:45:45
Comments
Leave a Comment

Please login to continue.