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)
| 3228 | |
| 3229 | |
| 3230 | def end_fill(self): |
| 3231 | """Fill the shape drawn after the call begin_fill(). |
| 3232 | |
| 3233 | No argument. |
| 3234 | |
| 3235 | Example (for a Turtle instance named turtle): |
| 3236 | >>> turtle.color("black", "red") |
| 3237 | >>> turtle.begin_fill() |
| 3238 | >>> turtle.circle(60) |
| 3239 | >>> turtle.end_fill() |
| 3240 | """ |
| 3241 | if self.filling(): |
| 3242 | if len(self._fillpath) > 2: |
| 3243 | self.screen._drawpoly(self._fillitem, self._fillpath, |
| 3244 | fill=self._fillcolor) |
| 3245 | if self.undobuffer: |
| 3246 | self.undobuffer.push(("dofill", self._fillitem)) |
| 3247 | self._fillitem = self._fillpath = None |
| 3248 | self._update() |
| 3249 | |
| 3250 | def dot(self, size=None, *color): |
| 3251 | """Draw a dot with diameter size, using color. |