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)
| 2753 | screen._update() |
| 2754 | |
| 2755 | def _tracer(self, flag=None, delay=None): |
| 2756 | """Turns turtle animation on/off and set delay for update drawings. |
| 2757 | |
| 2758 | Optional arguments: |
| 2759 | n -- nonnegative integer |
| 2760 | delay -- nonnegative integer |
| 2761 | |
| 2762 | If n is given, only each n-th regular screen update is really performed. |
| 2763 | (Can be used to accelerate the drawing of complex graphics.) |
| 2764 | Second arguments sets delay value (see RawTurtle.delay()) |
| 2765 | |
| 2766 | Example (for a Turtle instance named turtle): |
| 2767 | >>> turtle.tracer(8, 25) |
| 2768 | >>> dist = 2 |
| 2769 | >>> for i in range(200): |
| 2770 | ... turtle.fd(dist) |
| 2771 | ... turtle.rt(90) |
| 2772 | ... dist += 2 |
| 2773 | """ |
| 2774 | return self.screen.tracer(flag, delay) |
| 2775 | |
| 2776 | def _color(self, args): |
| 2777 | return self.screen._color(args) |