Example #1
0
 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()
Example #2
0
 def __init__(self):
     self.graphics = Graphics(matrix_width, matrix_height)
     self.color = randColor()