aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar brad90four <[email protected]>2021-09-03 16:15:34 -0400
committerGravatar Chris Lovering <[email protected]>2021-10-05 16:40:45 +0100
commitfbeb74bf9452840a9db8d3013d1f6dd2e350630f (patch)
tree44407612bc9f9c4038c3e2034367d74a6cbf31ef
parentCreate draft body of file (diff)
Add colorsys import, verbage for using JSON
Co-authored-by: Mohammad Rafivulla <[email protected]>
-rw-r--r--bot/exts/fun/color.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/exts/fun/color.py b/bot/exts/fun/color.py
index 32a25b0d..a00a956b 100644
--- a/bot/exts/fun/color.py
+++ b/bot/exts/fun/color.py
@@ -1,6 +1,7 @@
# imports
import logging
+import colorsys
import pillow
from discord import Embed
# ! need to install discord-flags and add to poetry.lock file
@@ -13,8 +14,8 @@ from bot.constants import Colours
logger = logging.getLogger(__name__)
# constants if needed
-# TODO Will the color conversions be done only from pillow or will an API / URL be needed?
-# Color URLs
+# Color URLs - will be replaced by JSON file?
+COLOR_JSON_PATH = ".bot//exts//resources//evergreen//"
COLOR_URL_XKCD = "https://xkcd.com/color/rgb/"
COLOR_URL_NAME_THAT_COLOR = "https://github.com/ryanzec/name-that-color/blob/master/lib/ntc.js#L116-L1681"
@@ -78,7 +79,7 @@ class Color(commands.cog):
# HSL=color_dict["HSL"],
# Hex=color_dict["Hex"],
# color_name=color_dict["color_name"]
- # )
+ # ).set_image() # url for image?
# )
# TODO pass for now