MCPcopy Create free account
hub / github.com/ActiveState/code / redArc

Method redArc

recipes/Python/577405_Penrose_Tiler/recipe-577405.py:152–161  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 def draw(self):
151 pass
152 def redArc(self):
153 nR = nRatioBig
154 p0 = self.vertices[0]
155 p1 = Scalar(self.vertices[3][0],self.vertices[3][1], nR, p0[0],p0[1])
156 p5 = Scalar(self.vertices[1][0],self.vertices[1][1], nR, p0[0],p0[1])
157 p3 = MidArc(p1,p5,p0,nR)
158 p2 = MidArc(p1,p3,p0,nR)
159 p4 = MidArc(p3,p5,p0,nR)
160 aR = Perimeter([p1,p2,p3,p4,p5])
161 canvas.create_line(aR, fill = 'darkgrey', tag = self.tag, width = 1)
162 def blueArc(self):
163 nR = 1 / (1 / nFib + 1) * nScale
164 p0 = self.vertices[2]

Callers 1

drawCompleteMethod · 0.45

Calls 3

ScalarFunction · 0.85
MidArcFunction · 0.85
PerimeterFunction · 0.85

Tested by

no test coverage detected