Skip to content

Instantly share code, notes, and snippets.

@ollien
Created September 1, 2015 04:53
Show Gist options
  • Save ollien/58eba85e352aae022e9d to your computer and use it in GitHub Desktop.
Save ollien/58eba85e352aae022e9d to your computer and use it in GitHub Desktop.
Pew
import random
import time
from termcolor import cprint
colors = ["grey", "red", "green", "yellow", "blue", "magenta", "cyan", "white"]
while True:
tempColors = list(colors)
foreground = random.choice(tempColors)
tempColors.remove(foreground)
background = "on_%s" % random.choice(tempColors)
cprint("pew", foreground, background, end = "")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment