MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / end_fill

Method end_fill

Python/Turtle.py:3230–3248  ·  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

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.

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected