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

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

src/c/h/chroma-scripts-HEAD/animations/fallingblocks-chroma-layer/main.py   chroma-scripts(Download)
	else: # color is not blue
		mul		= (MIN_BRIGHTNESS[0]) + ((MAX_BRIGHTNESS[0] - MIN_BRIGHTNESS[0]) * data[6]) # go from [0, 1) to [0, MAX_BRIGHTNESS)
	color = oscapi.mult(raw_color, mul)
	canvas[map_IDs[index]] = color
 
def plasmaCanvas():
	for i in range(0, NUMBER_OF_LIGHTS):
		r = ((random()*0.1) + 0.95)
		#if (DEBUG): print r
		canvas[i] = oscapi.mult(canvas[i], r)