예제 #1
0
파일: bounce.py 프로젝트: vm-wylbur-pi/rop
    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
파일: bounce.py 프로젝트: slobberchops/rop
    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
파일: rotate.py 프로젝트: slobberchops/rop
 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
파일: rsquare.py 프로젝트: vm-wylbur-pi/rop
 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)