(self, pos, node, color=(255, 255, 255), r=2)
| 20 | self.draw = ImageDraw.Draw(self.img) |
| 21 | |
| 22 | def dot(self, pos, node, color=(255, 255, 255), r=2): |
| 23 | x, y = 5.5 * (pos - node) |
| 24 | x += self.size / 2 |
| 25 | y += self.size / 2 |
| 26 | |
| 27 | self.draw.ellipse((x-r, y-r, x+r, y+r), color) |
| 28 | |
| 29 | def show(self): |
| 30 | if not DEBUG: |
no outgoing calls
no test coverage detected