Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # rgb_combo.py
- def nCombinations(x=0, restore=[]):
- while 1:
- for r in range(x+10):
- for g in range(r+1,x+10):
- for b in range(max(g+1,x),x+10):
- yield [r,g,b]
- x += 10
- get_combo = nCombinations()
- while 1:
- print(next(get_combo))
Add Comment
Please, Sign In to add comment