Skip to content

Instantly share code, notes, and snippets.

@jamesb93
Created November 4, 2021 11:09
Show Gist options
  • Save jamesb93/1e3b55201aa1c12923fd3edea159e745 to your computer and use it in GitHub Desktop.
Save jamesb93/1e3b55201aa1c12923fd3edea159e745 to your computer and use it in GitHub Desktop.
Generate random colour palettes that arent black or white
from colour import Color
import random
massive_fucking_string = ''
for x in range(200):
hue = random.uniform(0, 1)
saturation = random.uniform(0.5, 1.0)
value = random.uniform(0.3, 0.7)
c = Color(hsl=(hue, saturation, value))
massive_fucking_string += (str(c)[1:])
print(massive_fucking_string)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment