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

Method begin_poly

Python/Turtle.py:3337–3349  ·  view source on GitHub ↗

Start recording the vertices of a polygon. No argument. Start recording the vertices of a polygon. Current turtle position is first point of polygon. Example (for a Turtle instance named turtle): >>> turtle.begin_poly()

(self)

Source from the content-addressed store, hash-verified

3335 self.undobuffer.cumulate = False
3336
3337 def begin_poly(self):
3338 """Start recording the vertices of a polygon.
3339
3340 No argument.
3341
3342 Start recording the vertices of a polygon. Current turtle position
3343 is first point of polygon.
3344
3345 Example (for a Turtle instance named turtle):
3346 >>> turtle.begin_poly()
3347 """
3348 self._poly = [self._position]
3349 self._creatingPoly = True
3350
3351 def end_poly(self):
3352 """Stop recording the vertices of a polygon.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected