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

Method tripiece

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

Source from the content-addressed store, hash-verified

63 self.getscreen().update()
64
65 def tripiece(self, initpos, scale):
66 oldh = self.heading()
67 self.down()
68 self.backward(2.5 * scale)
69 self.tripolyr(31.5 * scale, scale)
70 self.up()
71 self.goto(initpos)
72 self.setheading(oldh)
73 self.down()
74 self.backward(2.5 * scale)
75 self.tripolyl(31.5 * scale, scale)
76 self.up()
77 self.goto(initpos)
78 self.setheading(oldh)
79 self.left(72)
80 self.getscreen().update()
81
82 def pentpiece(self, initpos, scale):
83 oldh = self.heading()

Callers 1

wheelMethod · 0.95

Calls 10

tripolyrMethod · 0.95
tripolylMethod · 0.95
downMethod · 0.80
upMethod · 0.80
gotoMethod · 0.80
setheadingMethod · 0.80
leftMethod · 0.80
getscreenMethod · 0.80
headingMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected