Skip to content

Instantly share code, notes, and snippets.

@Hanaasagi
Last active April 18, 2017 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hanaasagi/ed6ab4d57e2b2ce3715a2b4c6c8af963 to your computer and use it in GitHub Desktop.
Save Hanaasagi/ed6ab4d57e2b2ce3715a2b4c6c8af963 to your computer and use it in GitHub Desktop.
list all colors combination in terminal
for color in itertools.product([x for x in range(30, 38)], [y for y in range(40, 48)]):
print('\x1b[{0}m\x1b[{1}m{0}{1}\x1b[0m'.format(*color))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment