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

Method begin_fill

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

3207 return isinstance(self._fillpath, list)
3208
3209 def begin_fill(self):
3210 """Called just before drawing a shape to be filled.
3211
3212 No argument.
3213
3214 Example (for a Turtle instance named turtle):
3215 >>> turtle.color("black", "red")
3216 >>> turtle.begin_fill()
3217 >>> turtle.circle(60)
3218 >>> turtle.end_fill()
3219 """
3220 if not self.filling():
3221 self._fillitem = self.screen._createpoly()
3222 self.items.append(self._fillitem)
3223 self._fillpath = [self._position]
3224 self._newLine()
3225 if self.undobuffer:
3226 self.undobuffer.push(("beginfill", self._fillitem))
3227 self._update()
3228
3229
3230 def end_fill(self):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected