| 134 | self.drawOutline(p1[0], p1[1], nTheta2 - nTheta1,nCnr2) |
| 135 | |
| 136 | class kite(shape): |
| 137 | def GetPoints(self, cColour = 'brown'): |
| 138 | self.points = [[0,0] |
| 139 | ,[nSelfX,nSelfY] |
| 140 | ,[0,nScale * nFib] |
| 141 | ,[-nSelfX,nSelfY]] |
| 142 | self.colour = cColour |
| 143 | self.angles = [72,72,144,72] |
| 144 | self.type = 'kite' |
| 145 | # shape, corner |
| 146 | self.viable = [[[dart,1],[kite, 0]] |
| 147 | ,[[dart,2],[kite, 3]] |
| 148 | ,[[dart,3],[kite, 2]] |
| 149 | ,[[dart,0],[kite, 1]]] |
| 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] |
| 165 | p1 = Scalar(self.vertices[3][0],self.vertices[3][1], nR, p0[0],p0[1]) |
| 166 | p9 = Scalar(self.vertices[1][0],self.vertices[1][1], nR, p0[0],p0[1]) |
| 167 | p5 = MidArc(p1,p9,p0,nR) |
| 168 | p3 = MidArc(p1,p5,p0,nR) |
| 169 | p7 = MidArc(p5,p9,p0,nR) |
| 170 | p2 = MidArc(p1,p3,p0,nR) |
| 171 | p4 = MidArc(p3,p5,p0,nR) |
| 172 | p6 = MidArc(p5,p7,p0,nR) |
| 173 | p8 = MidArc(p7,p9,p0,nR) |
| 174 | aR = Perimeter([p1,p2,p3,p4,p5,p6,p7,p8,p9]) |
| 175 | canvas.create_line(aR, fill = 'cyan', tag = self.tag, width = 1) |
| 176 | def subShapes(self): |
| 177 | subs = [] |
| 178 | p0 = list(self.vertices[0]) |
| 179 | p1 = list(self.vertices[1]) |
| 180 | p2 = list(self.vertices[2]) |
| 181 | p3 = list(self.vertices[3]) |
| 182 | p4 = Scalar(p3[0],p3[1], nRatioSmall, p0[0],p0[1]) |
| 183 | p5 = Scalar(p1[0],p1[1], nRatioSmall, p0[0],p0[1]) |
| 184 | p6 = Scalar(p2[0],p2[1], nRatioBig , p0[0],p0[1]) |
| 185 | subs.append(SubKiteRight(p3,p6,p2)) |
| 186 | subs.append(SubKiteLeft(p3,p6,p4)) |
| 187 | subs.append(SubKiteRight(p1,p6,p5)) |
| 188 | subs.append(SubKiteLeft(p1,p6,p2)) |
| 189 | subs.append(SubDartRight(p6,p0,p5)) |
| 190 | subs.append(SubDartLeft(p6,p0,p4)) |
| 191 | return subs |
| 192 | |
| 193 | class dart(shape): |