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

Method begin_fill

Lib/turtle.py:3446–3464  ·  view source on GitHub ↗

Called just before drawing a shape to be filled. 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

3444 self.end_fill()
3445
3446 def begin_fill(self):
3447 """Called just before drawing a shape to be filled.
3448
3449 No argument.
3450
3451 Example (for a Turtle instance named turtle):
3452 >>> turtle.color("black", "red")
3453 >>> turtle.begin_fill()
3454 >>> turtle.circle(60)
3455 >>> turtle.end_fill()
3456 """
3457 if not self.filling():
3458 self._fillitem = self.screen._createpoly()
3459 self.items.append(self._fillitem)
3460 self._fillpath = [self._position]
3461 self._newLine()
3462 if self.undobuffer:
3463 self.undobuffer.push(("beginfill", self._fillitem))
3464 self._update()
3465
3466 def end_fill(self):
3467 """Fill the shape drawn after the call begin_fill().

Callers 6

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

Calls 6

fillingMethod · 0.95
_newLineMethod · 0.95
_updateMethod · 0.95
_createpolyMethod · 0.80
appendMethod · 0.45
pushMethod · 0.45

Tested by 2

test_begin_end_fillMethod · 0.64