Searched refs:numchips (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython3/Tools/pynche/ |
D | StripViewer.py | 52 def constant(numchips): argument 53 step = 255.0 / (numchips - 1) 56 while numchips > 0: 59 numchips = numchips - 1 63 def constant_red_generator(numchips, red, green, blue): argument 64 seq = constant(numchips) 65 return list(zip([red] * numchips, seq, seq)) 68 def constant_green_generator(numchips, red, green, blue): argument 69 seq = constant(numchips) 70 return list(zip(seq, [green] * numchips, seq)) [all …]
|
/external/python/cpython2/Tools/pynche/ |
D | StripViewer.py | 52 def constant(numchips): argument 53 step = 255.0 / (numchips - 1) 56 while numchips > 0: 59 numchips = numchips - 1 63 def constant_red_generator(numchips, red, green, blue): argument 64 seq = constant(numchips) 65 return map(None, [red] * numchips, seq, seq) 68 def constant_green_generator(numchips, red, green, blue): argument 69 seq = constant(numchips) 70 return map(None, seq, [green] * numchips, seq) [all …]
|