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

Method wheel

Lib/turtledemo/bytedesign.py:47–63  ·  view source on GitHub ↗
(self, initpos, scale)

Source from the content-addressed store, hash-verified

45 self.getscreen().tracer(True)
46
47 def wheel(self, initpos, scale):
48 self.right(54)
49 for i in range(4):
50 self.pentpiece(initpos, scale)
51 self.down()
52 self.left(36)
53 for i in range(5):
54 self.tripiece(initpos, scale)
55 self.left(36)
56 for i in range(5):
57 self.down()
58 self.right(72)
59 self.forward(28 * scale)
60 self.up()
61 self.backward(28 * scale)
62 self.left(54)
63 self.getscreen().update()
64
65 def tripiece(self, initpos, scale):
66 oldh = self.heading()

Callers 1

designMethod · 0.95

Calls 9

pentpieceMethod · 0.95
tripieceMethod · 0.95
rightMethod · 0.80
downMethod · 0.80
leftMethod · 0.80
upMethod · 0.80
getscreenMethod · 0.80
forwardMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected