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

Method begin_fill

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

3325 return isinstance(self._fillpath, list)
3326
3327 def begin_fill(self):
3328 """Called just before drawing a shape to be filled.
3329
3330 No argument.
3331
3332 Example (for a Turtle instance named turtle):
3333 >>> turtle.color("black", "red")
3334 >>> turtle.begin_fill()
3335 >>> turtle.circle(60)
3336 >>> turtle.end_fill()
3337 """
3338 if not self.filling():
3339 self._fillitem = self.screen._createpoly()
3340 self.items.append(self._fillitem)
3341 self._fillpath = [self._position]
3342 self._newLine()
3343 if self.undobuffer:
3344 self.undobuffer.push(("beginfill", self._fillitem))
3345 self._update()
3346
3347
3348 def end_fill(self):

Callers 2

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

no test coverage detected