Example #1
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Number of points in cache
        self.N = 250
        self.scale_factor = 0.8
        self.ROT_RATE = 0.1

        # Color changing
        self.writhe_current_hue = random.random()
        self.writhe_hue_target = random.random()
        self.writhe_hue_step = 1.0/10.0
        
        #diffuse D-angle
        self.thetad = 0.2
        
        #seed angle   
        self.thetaB = random.random()*2*pi
        self.thetaR = random.random()*2*pi
        self.thetaG = random.random()*2*pi

        #seed position
        self.BX = arange(0.0,1.0,1.0/self.N)
        self.BY = arange(0.0,1.0,1.0/self.N)
        self.BX[0] = 0
        self.BY[0] = 0
        self.fB = 1.0

        self.RX=arange(0.0,1.0,1.0/self.N) 
        self.RY=arange(0.0,1.0,1.0/self.N)
        self.RX[0]=0
        self.RY[0]=0
        self.fR=1.0
       
        self.GX=arange(0,1.0,1.0/self.N)
        self.GY=arange(0,1.0,1.0/self.N)
        self.GX[0]=0
        self.GY[0]=0
        self.fG=1.0

        #jump distance
        self.dr=2.0/self.N;
       
        for i in range(1,self.N):
            self.thetaB=random.gauss(0,self.thetad)+self.thetaB;
            self.BX[i]=self.BX[i-1]+self.dr*cos(self.thetaB)
            self.BY[i]=self.BY[i-1]+self.dr*sin(self.thetaB)
    
            self.thetaR=random.gauss(0,self.thetad)+self.thetaR;
            self.RX[i]=self.RX[i-1]+self.dr*cos(self.thetaR)
            self.RY[i]=self.RY[i-1]+self.dr*sin(self.thetaR)
            
            self.thetaG=random.gauss(0,self.thetad)+self.thetaG;
            self.GX[i]=self.GX[i-1]+self.dr*cos(self.thetaG)
            self.GY[i]=self.GY[i-1]+self.dr*sin(self.thetaG)

        # loop variable
        self.i=1.0;
Example #2
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Number of points in cache
        self.N = 250
        self.scale_factor = 0.8
        self.ROT_RATE = 0.1

        # Color changing
        self.writhe_current_hue = random.random()
        self.writhe_hue_target = random.random()
        self.writhe_hue_step = 1.0 / 10.0

        #diffuse D-angle
        self.thetad = 0.2

        #seed angle
        self.thetaB = random.random() * 2 * pi
        self.thetaR = random.random() * 2 * pi
        self.thetaG = random.random() * 2 * pi

        #seed position
        self.BX = arange(0.0, 1.0, 1.0 / self.N)
        self.BY = arange(0.0, 1.0, 1.0 / self.N)
        self.BX[0] = 0
        self.BY[0] = 0
        self.fB = 1.0

        self.RX = arange(0.0, 1.0, 1.0 / self.N)
        self.RY = arange(0.0, 1.0, 1.0 / self.N)
        self.RX[0] = 0
        self.RY[0] = 0
        self.fR = 1.0

        self.GX = arange(0, 1.0, 1.0 / self.N)
        self.GY = arange(0, 1.0, 1.0 / self.N)
        self.GX[0] = 0
        self.GY[0] = 0
        self.fG = 1.0

        #jump distance
        self.dr = 2.0 / self.N

        for i in range(1, self.N):
            self.thetaB = random.gauss(0, self.thetad) + self.thetaB
            self.BX[i] = self.BX[i - 1] + self.dr * cos(self.thetaB)
            self.BY[i] = self.BY[i - 1] + self.dr * sin(self.thetaB)

            self.thetaR = random.gauss(0, self.thetad) + self.thetaR
            self.RX[i] = self.RX[i - 1] + self.dr * cos(self.thetaR)
            self.RY[i] = self.RY[i - 1] + self.dr * sin(self.thetaR)

            self.thetaG = random.gauss(0, self.thetad) + self.thetaG
            self.GX[i] = self.GX[i - 1] + self.dr * cos(self.thetaG)
            self.GY[i] = self.GY[i - 1] + self.dr * sin(self.thetaG)

        # loop variable
        self.i = 1.0
Example #3
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Parameters
        self.MAX_THETA = 4.0 * pi
        self.SAMPLES_PER_FRAME = 400

        self.RATE = 0.2
        self.reset()
Example #4
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Reset things
        audio_engine.clear_all()
        self.x_coord = -1.0
        self.step = 1 / 256.0
        self.subsamp = 2
        self.sample_array = np.zeros(512)
Example #5
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Reset things
        audio_engine.clear_all()
        self.x_coord = -0.9
        self.step = 1/1024.0
        self.subsamp = 1
        self.sample_array = np.zeros(512)
Example #6
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Parameters
        self.MAX_THETA = 4.0 * pi
        self.SAMPLES_PER_FRAME = 1000
        self.SCALE = 1.0

        self.RATE = 0.2
        self.reset()
Example #7
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Reset things
        audio_engine.clear_all()

        # Constants
        self.SUBSAMP = 3
        self.BOOST = 8
        self.MIN_SIZE = 0.2
        self.MAX_SIZE = 1.0

        self.W = 523.251131 / 4.0 * pi;
        self.pos = 0.0
Example #8
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Reset things
        audio_engine.clear_all()

        # Constants
        self.SUBSAMP = 20
        self.BOOST = 8
        self.MIN_SIZE = 0.2
        self.MAX_SIZE = 1.0

        self.W = 523.251131 / 4.0 * pi;
        self.pos = 0.0
        self.mono = None
Example #9
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Number of points in cache
        self.N = 250.0;

        # fixed dtheta
        self.dtheta=0.04;

        # switch cut off
        self.cut=0.7;
        #        self.cut=1.0;

        # magnitudes
        self.m1=0.1;
        self.m2=0.7;
        self.m3=0.4;
        self.m4=0.23;
        self.m5=0.11;
        # self.m1=0.8;
        # self.m2=0.4;
        # self.m3=0.2;
        # self.m4=0.1;
        # self.m5=0.1;


        # combo powers
        self.p1x=1.0/2.0;
        self.p1y=3.0/2.0;
        self.p2x=3.0/2.0;
        self.p2y=1.0/2.0;
        
        # coefficients
        self.th1=random.random()*2*pi;
        self.th2=random.random()*2*pi;
        self.th3=random.random()*2*pi;
        self.th4=random.random()*2*pi;
        self.th5=random.random()*2*pi;

        self.th1b=random.random()*2*pi;
        self.th2b=random.random()*2*pi;
        self.th3b=random.random()*2*pi;
        self.th4b=random.random()*2*pi;
        self.th5b=random.random()*2*pi;
Example #10
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Number of points in cache
        self.N = 250.0

        # fixed dtheta
        self.dtheta = 0.04

        # switch cut off
        self.cut = 0.7
        #        self.cut=1.0;

        # magnitudes
        self.m1 = 0.1
        self.m2 = 0.7
        self.m3 = 0.4
        self.m4 = 0.23
        self.m5 = 0.11
        # self.m1=0.8;
        # self.m2=0.4;
        # self.m3=0.2;
        # self.m4=0.1;
        # self.m5=0.1;

        # combo powers
        self.p1x = 1.0 / 2.0
        self.p1y = 3.0 / 2.0
        self.p2x = 3.0 / 2.0
        self.p2y = 1.0 / 2.0

        # coefficients
        self.th1 = random.random() * 2 * pi
        self.th2 = random.random() * 2 * pi
        self.th3 = random.random() * 2 * pi
        self.th4 = random.random() * 2 * pi
        self.th5 = random.random() * 2 * pi

        self.th1b = random.random() * 2 * pi
        self.th2b = random.random() * 2 * pi
        self.th3b = random.random() * 2 * pi
        self.th4b = random.random() * 2 * pi
        self.th5b = random.random() * 2 * pi
Example #11
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Parameters
        self.SAMPLES_PER_FRAME = 900
        self.MAX_THETA = 16 * pi
        self.RATE = 0.2

        self.x_ratio = 3
        self.x_phase = 0
        self.y_ratio = 5
        self.y_phase = 0
        self.z_ratio = 7
        self.z_phase = 0
        self.decay = 0.9995

        self.spin = 0
        self.spin_phase = 0
Example #12
0
    def __init__(self):
        LuxPlugin.__init__(self)
        ColorDriftPlugin.__init__(self)

        # Parameters
        self.SAMPLES_PER_FRAME = 1000
        self.MAX_THETA = 8 * pi
        self.RATE = 0.1

        self.x_ratio = 3
        self.x_phase = 0
        self.y_ratio = 5
        self.y_phase = 0
        self.z_ratio = 7
        self.z_phase = 0
        self.decay = 0.9995

        self.spin = 0
        self.spin_phase = 0