示例#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)
        ]
示例#2
0
文件: race.py 项目: slobberchops/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)
示例#3
0
文件: race.py 项目: 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)
示例#4
0
文件: sine.py 项目: vm-wylbur-pi/rop
    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
示例#5
0
 def __init__(self, matrix, config):
     self.color = getColorGen(0.01)
     self.phase_z = 0
示例#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)]
示例#7
0
文件: rise.py 项目: ak15199/rop
 def __init__(self, matrix, config):
     self.count = matrix.width/3
     self.color = getColorGen(step=0.015, hue=random())
     self.y = matrix.height
示例#8
0
 def __init__(self, matrix, config):
     self.hue = getColorGen(0.006)
     self.margin = sqrt(matrix.numpix) * 0.7
     self.direction = 5
示例#9
0
 def __init__(self, matrix, config):
     self.count = matrix.width / 3
     self.color = getColorGen(step=0.015, hue=random())
     self.y = matrix.height
示例#10
0
文件: sine.py 项目: slobberchops/rop
    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
示例#11
0
文件: lissajous.py 项目: ak15199/rop
 def __init__(self, matrix, config):
     self.color = getColorGen(0.01)
     self.phase_z = 0
示例#12
0
 def __init__(self, matrix, config):
     self.width = sqrt(matrix.numpix)/3
     self.hue = getColorGen(0.001)
     self.theta = 0.0
示例#13
0
 def __init__(self, matrix, config):
     self.hue = getColorGen(0.006)
     self.margin = sqrt(matrix.numpix) * 0.7
     self.direction = 5
示例#14
0
文件: rotate.py 项目: ak15199/rop
 def __init__(self, matrix, config):
     self.hue = getColorGen(0.006)
示例#15
0
 def __init__(self, matrix, config):
     self.hue = getColorGen(0.006)