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) ]
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)
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)
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
def __init__(self, matrix, config): self.color = getColorGen(0.01) self.phase_z = 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)]
def __init__(self, matrix, config): self.count = matrix.width/3 self.color = getColorGen(step=0.015, hue=random()) self.y = matrix.height
def __init__(self, matrix, config): self.hue = getColorGen(0.006) self.margin = sqrt(matrix.numpix) * 0.7 self.direction = 5
def __init__(self, matrix, config): self.count = matrix.width / 3 self.color = getColorGen(step=0.015, hue=random()) self.y = matrix.height
def __init__(self, matrix, config): self.width = sqrt(matrix.numpix)/3 self.hue = getColorGen(0.001) self.theta = 0.0
def __init__(self, matrix, config): self.hue = getColorGen(0.006)