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

Method design

Lib/turtledemo/bytedesign.py:29–45  ·  view source on GitHub ↗
(self, homePos, scale)

Source from the content-addressed store, hash-verified

27class Designer(Turtle):
28
29 def design(self, homePos, scale):
30 self.up()
31 for i in range(5):
32 self.forward(64.65 * scale)
33 self.down()
34 self.wheel(self.position(), scale)
35 self.up()
36 self.backward(64.65 * scale)
37 self.right(72)
38 self.up()
39 self.goto(homePos)
40 self.right(36)
41 self.forward(24.5 * scale)
42 self.right(198)
43 self.down()
44 self.centerpiece(46 * scale, 143.4, scale)
45 self.getscreen().tracer(True)
46
47 def wheel(self, initpos, scale):
48 self.right(54)

Callers 1

mainFunction · 0.95

Calls 9

wheelMethod · 0.95
centerpieceMethod · 0.95
upMethod · 0.80
downMethod · 0.80
rightMethod · 0.80
gotoMethod · 0.80
getscreenMethod · 0.80
forwardMethod · 0.45
tracerMethod · 0.45

Tested by

no test coverage detected