コード例 #1
0
ファイル: TurtleWorld.py プロジェクト: jfparis/swampy
 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
ファイル: AmoebaWorld.py プロジェクト: Liu-Yujia/Python
    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
ファイル: AmoebaWorld.py プロジェクト: AlexCSoh/dev-sprint0
    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()
コード例 #5
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()
コード例 #6
0
 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()