コード例 #1
0
ファイル: sven.py プロジェクト: ozel/py-artnet
 def generate(self):
     self.graphics.fill(BLACK)
     b = 0
     i = 0
     while(i <= 10):
         color2 = randColor()
         a = random.randint(0, matrix_width)
         b = random.randint(0, matrix_height)
         self.graphics.drawPixel(a, b, color2)
         i = i + 1
     b = b + 1
     return self.graphics.getSurface()
コード例 #2
0
ファイル: sven.py プロジェクト: ozel/py-artnet
 def __init__(self):
     self.graphics = Graphics(matrix_width, matrix_height)
     self.color = randColor()