Пример #1
0
 def makeAnatomy(self, **kwargs):
     """Return the anatomy of a boid."""
     if not "area_color" in kwargs:
         kwargs["area_color"] = mycolors.RED
     if not "fill" in kwargs:
         kwargs["fill"] = True
     anatomy = Form.createFromTuples([(1, 0), (-1, -1), (-0.5, 0), (-1, 1)],
                                     **kwargs)
     anatomy.recenter()
     return anatomy
Пример #2
0
 def getForm(self):
     """Return the form of the perlin asteroid."""
     return Form.createFromTuples(self.points, color=self.color)
 def getForm(self):
     """Return the form of the perlin asteroid."""
     #points=[Point(*p) for p in self.getPoints()]
     return Form.createFromTuples(self.getPoints(), conversion=self.conversion, radius=self.radius, side_color=self.color)