Skip to content

Instantly share code, notes, and snippets.

@last-ent
Created April 14, 2014 21:20
Show Gist options
  • Save last-ent/10683484 to your computer and use it in GitHub Desktop.
Save last-ent/10683484 to your computer and use it in GitHub Desktop.
Plug's colour complex
from itertools import cycle
colours = cycle(['Dark','Light'])
def get_color_complex():
i = 0
dct = {'Light': [], 'Dark': []}
while i<64:
if colours.next() == 'Light':
dct['Light'].append(i)
else:
dct['Dark'].append(i)
i +=1
return dct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment