Esempio n. 1
0
    def __init__(self, matrix, count):

        pointgen = self.positionGenerator(matrix)
        huegen = getColorGen(step=0.15, hue=random())
        self.vecs = [
            Vector(next(pointgen), next(huegen)) for v in range(count)
        ]
Esempio n. 2
0
 def __init__(self, matrix, config):
     self.hue = getColorGen(0.001)
     self.clock = 0
     self.racers = []
     xmax = matrix.midWidth - 1
     for x in frange(0, xmax, .5):
         offset = pi * (0.2 + 0.6 * x / xmax)
         accel = 20 * sin(offset)
         racer = Racer(matrix.midWidth, matrix.midHeight, x, accel)
         self.racers.append(racer)
Esempio n. 3
0
File: race.py Progetto: ak15199/rop
 def __init__(self, matrix, config):
     self.hue = getColorGen(0.001)
     self.clock = 0
     self.racers = []
     xmax = matrix.midWidth-1
     for x in frange(0, xmax, .5):
         offset = pi*(0.2 + 0.6 * x/xmax)
         accel = 20 * sin(offset)
         racer = Racer(matrix.midWidth, matrix.midHeight, x, accel)
         self.racers.append(racer)
Esempio n. 4
0
    def __init__(self, matrix, config):
        self.hue1 = getColorGen(step=0.00001, hue=0.0)
        self.hue2 = getColorGen(step=0.00001, hue=0.5)

        self.phase = 0
Esempio n. 5
0
 def __init__(self, matrix, config):
     self.color = getColorGen(0.01)
     self.phase_z = 0
Esempio n. 6
0
    def __init__(self, matrix, count):

        pointgen = self.positionGenerator(matrix)
        huegen = getColorGen(step=0.15, hue=random())
        self.vecs = [Vector(pointgen.next(), huegen.next())
                     for v in range(count)]
Esempio n. 7
0
File: rise.py Progetto: ak15199/rop
 def __init__(self, matrix, config):
     self.count = matrix.width/3
     self.color = getColorGen(step=0.015, hue=random())
     self.y = matrix.height
Esempio n. 8
0
 def __init__(self, matrix, config):
     self.hue = getColorGen(0.006)
     self.margin = sqrt(matrix.numpix) * 0.7
     self.direction = 5
Esempio n. 9
0
 def __init__(self, matrix, config):
     self.count = matrix.width / 3
     self.color = getColorGen(step=0.015, hue=random())
     self.y = matrix.height
Esempio n. 10
0
    def __init__(self, matrix, config):
        self.hue1 = getColorGen(step=0.00001, hue=0.0)
        self.hue2 = getColorGen(step=0.00001, hue=0.5)

        self.phase = 0
Esempio n. 11
0
 def __init__(self, matrix, config):
     self.color = getColorGen(0.01)
     self.phase_z = 0
Esempio n. 12
0
 def __init__(self, matrix, config):
     self.width = sqrt(matrix.numpix)/3
     self.hue = getColorGen(0.001)
     self.theta = 0.0
Esempio n. 13
0
 def __init__(self, matrix, config):
     self.hue = getColorGen(0.006)
     self.margin = sqrt(matrix.numpix) * 0.7
     self.direction = 5
Esempio n. 14
0
 def __init__(self, matrix, config):
     self.hue = getColorGen(0.006)
Esempio n. 15
0
 def __init__(self, matrix, config):
     self.hue = getColorGen(0.006)