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)
| 3464 | self._update() |
| 3465 | |
| 3466 | def end_fill(self): |
| 3467 | """Fill the shape drawn after the call begin_fill(). |
| 3468 | |
| 3469 | No argument. |
| 3470 | |
| 3471 | Example (for a Turtle instance named turtle): |
| 3472 | >>> turtle.color("black", "red") |
| 3473 | >>> turtle.begin_fill() |
| 3474 | >>> turtle.circle(60) |
| 3475 | >>> turtle.end_fill() |
| 3476 | """ |
| 3477 | if self.filling(): |
| 3478 | if len(self._fillpath) > 2: |
| 3479 | self.screen._drawpoly(self._fillitem, self._fillpath, |
| 3480 | fill=self._fillcolor) |
| 3481 | if self.undobuffer: |
| 3482 | self.undobuffer.push(("dofill", self._fillitem)) |
| 3483 | self._fillitem = self._fillpath = None |
| 3484 | self._update() |
| 3485 | |
| 3486 | def dot(self, size=None, *color): |
| 3487 | """Draw a dot with diameter size, using color. |