示例#1
0
 def __init__(self, world=None):
     Animal.__init__(self, world)
     self.r = 5
     self.heading = 0
     self.pen = True
     self.color = "red"
     self.draw()
示例#2
0
    def __init__(self, world=None):
        Animal.__init__(self, world)

        # size and color
        self.size = 0.5
        self.color1 = 'violet'
        self.color2 = 'medium orchid'
示例#3
0
    def __init__(self, world=None):
        Animal.__init__(self, world)

        # size and color
        self.size = 0.5
        self.color1 = 'violet'
        self.color2 = 'medium orchid'
示例#4
0
 def __init__(self, world=None):
     Animal.__init__(self, world)
     self.r = 5
     self.heading = 0
     self.pen = True
     self.color = 'red'
     self.pen_color = 'blue'
     self.draw()
 def __init__(self, world=None):
     Animal.__init__(self, world)        
     self.r = 5
     self.heading = 0
     self.pen = True
     self.color = 'red'
     self.pen_color = 'blue'
     self.draw()
 def __init__(self, world):
     Animal.__init__(self, world)
     self.dir = 0
     self.draw()
示例#7
0
 def __init__(self, world):
     Animal.__init__(self, world)
     self.dir = 0
     self.draw()