Turns turtle animation on/off and set delay for update drawings. Optional arguments: n -- nonnegative integer delay -- nonnegative integer If n is given, only each n-th regular screen update is really performed. (Can be used to accelerate the drawing of co
(self, flag=None, delay=None)
| 2568 | screen._update() |
| 2569 | |
| 2570 | def _tracer(self, flag=None, delay=None): |
| 2571 | """Turns turtle animation on/off and set delay for update drawings. |
| 2572 | |
| 2573 | Optional arguments: |
| 2574 | n -- nonnegative integer |
| 2575 | delay -- nonnegative integer |
| 2576 | |
| 2577 | If n is given, only each n-th regular screen update is really performed. |
| 2578 | (Can be used to accelerate the drawing of complex graphics.) |
| 2579 | Second arguments sets delay value (see RawTurtle.delay()) |
| 2580 | |
| 2581 | Example (for a Turtle instance named turtle): |
| 2582 | >>> turtle.tracer(8, 25) |
| 2583 | >>> dist = 2 |
| 2584 | >>> for i in range(200): |
| 2585 | ... turtle.fd(dist) |
| 2586 | ... turtle.rt(90) |
| 2587 | ... dist += 2 |
| 2588 | """ |
| 2589 | return self.screen.tracer(flag, delay) |
| 2590 | |
| 2591 | def _color(self, args): |
| 2592 | return self.screen._color(args) |