Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/color.py
diff options
context:
space:
mode:
Diffstat (limited to 'color.py')
-rwxr-xr-xcolor.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/color.py b/color.py
index 472b44e..9e81b6c 100755
--- a/color.py
+++ b/color.py
@@ -9,10 +9,11 @@ from math import sin, cos, pi, sqrt
IMAGES_PATH = 'images/'
class pyGrafic:
- def __init__(self, matrix):
+ def __init__(self):
+ matrix=CreateMatrix(60)
self.matrix=matrix
self.rows=matrix.Rows
- self.columns=matrix.Columns
+ self.columns=matrix.Columns
def init(self):
#pygame.init()
@@ -151,11 +152,11 @@ class pyGrafic:
def main():
pygame.init()
- matrix=CreateMatrix(60)
#se inicia el controlador de pygame
-
objeto=pyGrafic(matrix)
objeto.loop()
#se llama a la funcion main cuando se ejecute el scrip
-if __name__ == '__main__': main()
+if __name__ == '__main__':
+ main()
+