Fill the shape drawn after the call begin_fill(). No argument. Example (for a Turtle instance named turtle): >>> turtle.color("black", "red") >>> turtle.begin_fill() >>> turtle.circle(60) >>> turtle.end_fill()
(self)
| 3346 | |
| 3347 | |
| 3348 | def end_fill(self): |
| 3349 | """Fill the shape drawn after the call begin_fill(). |
| 3350 | |
| 3351 | No argument. |
| 3352 | |
| 3353 | Example (for a Turtle instance named turtle): |
| 3354 | >>> turtle.color("black", "red") |
| 3355 | >>> turtle.begin_fill() |
| 3356 | >>> turtle.circle(60) |
| 3357 | >>> turtle.end_fill() |
| 3358 | """ |
| 3359 | if self.filling(): |
| 3360 | if len(self._fillpath) > 2: |
| 3361 | self.screen._drawpoly(self._fillitem, self._fillpath, |
| 3362 | fill=self._fillcolor) |
| 3363 | if self.undobuffer: |
| 3364 | self.undobuffer.push(("dofill", self._fillitem)) |
| 3365 | self._fillitem = self._fillpath = None |
| 3366 | self._update() |
| 3367 | |
| 3368 | def dot(self, size=None, *color): |
| 3369 | """Draw a dot with diameter size, using color. |