MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / end_fill

Method end_fill

tools/python-3.11.9-amd64/Lib/turtle.py:3348–3366  ·  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

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.

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls 4

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

Tested by

no test coverage detected