MCPcopy Index your code
hub / github.com/python/cpython / end_fill

Method end_fill

Lib/turtle.py:3466–3484  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 5

teleportMethod · 0.95
fillMethod · 0.95
test_begin_end_fillMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 4

fillingMethod · 0.95
_updateMethod · 0.95
_drawpolyMethod · 0.80
pushMethod · 0.45

Tested by 1

test_begin_end_fillMethod · 0.64