Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(28)  |  Call(28)  |  Derive(0)  |  Import(0)

src/c/h/chroma-scripts-HEAD/animations/mobile-light-dj/main.py   chroma-scripts(Download)
    currentPixels = [(0.0,0.0,0.0)] * 24
    timeout = 1.0
    out.write(pix)
 
    serv = socket( AF_INET,SOCK_STREAM)    
        currentPixels[i] = pix[i]
 
    out.write(pix)
 
    running = True
                    currentPixels[i] = pix[i]
 
                out.write(pix)
                conn.close()
 
                    currentPixels[i] = pix[i]
 
                out.write(pix)
 
            #time.sleep(sleepTime)
 
            out.write(currentPixels)

src/c/h/chroma-scripts-HEAD/animations/conga/main.py   chroma-scripts(Download)
    pix[curr] = (r, g, b)
    curr += 1
    out.write(pix)
    time.sleep(0.2)
 
    while True:
        while curr < 47:
            r, g, b = colorAdd(r, g, b)
            pix[curr] = (r, g, b)
            out.write(pix)
            r, g, b = colorAdd(r, g, b)
            pix[curr] = (r, g, b)
            out.write(pix)
            time.sleep(0.2)
            curr -= 1

src/c/h/chroma-scripts-HEAD/animations/refridgerator/main.py   chroma-scripts(Download)
            for i in xrange(12):
                pix[random.randint(0,23)] = (0.0, 0.0, pix[i][2] + 1023/smoothnessRatio)
            out.write(pix)
            if pix[i][2] > 900:
                    runInAnimation = False
            time.sleep(sleepTime)
        else:
            for i in xrange(12):
                pix[random.randint(0,23)] = (0.0, 0.0, pix[i][2] - 1023/smoothnessRatio)
            out.write(pix)

src/c/h/chroma-scripts-HEAD/animations/green/main.py   chroma-scripts(Download)
            for i in xrange(12):
                pix[random.randint(0,47)] = (0.0, pix[i][1] + 1023/smoothnessRatio, 0.0)
            out.write(pix)
            if pix[i][1] > 900:
                    runInAnimation = False
            time.sleep(sleepTime)
        else:
            for i in xrange(12):
                pix[random.randint(0,47)] = (0.0, pix[i][1] - 1023/smoothnessRatio, 0.0)
            out.write(pix)

src/c/h/chroma-scripts-HEAD/animations/furnace/main.py   chroma-scripts(Download)
            for i in xrange(12):
                pix[random.randint(0,47)] = (pix[i][0] + 1023/smoothnessRatio, 0.0, 0.0)
            out.write(pix)
            if pix[i][0] > 900:
                    runInAnimation = False
            time.sleep(sleepTime)
        else:
            for i in xrange(12):
                pix[random.randint(0,47)] = (pix[i][0] - 1023/smoothnessRatio, 0.0, 0.0)
            out.write(pix)

src/c/h/chroma-scripts-HEAD/animations/white/main.py   chroma-scripts(Download)
    while True:
        pix = [(4.0 * r, 4.0 * g, 4.0 * b)] * 24
        out.write(pix)
        time.sleep(0.2)
 

src/c/h/chroma-scripts-HEAD/animations/spin-clock/main.py   chroma-scripts(Download)
            pixOut[i] = (rgb01[i][0] *1023.0,rgb01[i][1] *1023.0,rgb01[i][2] *1023.0)
 
        out.write(pixOut)
        time.sleep(1.0/fps)
 

src/c/h/chroma-scripts-HEAD/animations/snake/main.py   chroma-scripts(Download)
            else:
                pix[x] = bgColor
        out.write(pix)
        if( (0 <= c < 3) or (8 <= c < 11) or (16 <= c < 19) ):
            c += 1

src/c/h/chroma-scripts-HEAD/animations/random/main.py   chroma-scripts(Download)
                (r2,g2,b2) = pix_B[j]
                pix[j] = (r1*dp + r2*d, g1*dp + g2*d, b1*dp + b2*d)
            out.write(pix)
            #time.sleep(1.0)
            time.sleep(1.0/steps)

src/c/h/chroma-scripts-HEAD/animations/rain/main.py   chroma-scripts(Download)
        if random.randint(0,5) < 3:
            pix[random.randint(0,47)] = (0.0,0.0,1023.0)
        out.write(pix)
        for i in xrange(48):
            if pix[i][2] > 0.0:

  1 | 2  Next