Draw the fish's shape on the given graphics context.
(self, graphics)
| 125 | self.trim_color = trim_color |
| 126 | |
| 127 | def render(self, graphics): |
| 128 | "Draw the fish's shape on the given graphics context." |
| 129 | polygon = self.SHAPE.copy() |
| 130 | polygon.rotate(self.velocity.direction) |
| 131 | polygon.translate(self.location) |
| 132 | graphics.draw(polygon, self.body_color, self.trim_color) |
| 133 | |
| 134 | def run_AI(self, school): |
| 135 | "Execute the three boid rules and store in steering." |