Created
November 4, 2021 11:09
-
-
Save jamesb93/1e3b55201aa1c12923fd3edea159e745 to your computer and use it in GitHub Desktop.
Generate random colour palettes that arent black or white
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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