summaryrefslogtreecommitdiff
path: root/src/color_engine.py
diff options
context:
space:
mode:
authorChandler J <cjustice2000@gmail.com>2024-03-18 13:14:40 -0600
committerChandler J <cjustice2000@gmail.com>2024-03-18 13:14:40 -0600
commit0f6fd394f39406b76e8f18fe4c2ddb791194f978 (patch)
treebcb56d1b0c019854eaf89a36e24f83356d6894dd /src/color_engine.py
parent83a3b5ebcc355e875c0d3f43a5a854e7194d6540 (diff)
began implementating save states for color palettes and MOAR POLISH
Diffstat (limited to 'src/color_engine.py')
-rw-r--r--src/color_engine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/color_engine.py b/src/color_engine.py
index fb885a8..0e43475 100644
--- a/src/color_engine.py
+++ b/src/color_engine.py
@@ -1,7 +1,7 @@
import cv2 as cv
from sklearn.cluster import KMeans
-def grabColors(img_path: str, num_colors: int) -> list():
+def grabColors(img_path: str, num_colors: int) -> list:
"""
Takes in an image, and Number of colors, then returns a list of those colors.
The list of colors will contain the most prominent colors present in the image.
@@ -32,7 +32,7 @@ def compColors(color_list: list) -> list:
compliments.append('#' + ''.join(comp))
return compliments
-def checkContrast(hex_color_list: list, hex_compliment_list: list) -> list():
+def checkContrast(hex_color_list: list, hex_compliment_list: list) -> list:
"""
Given the list of colors and their compliments, reutrn a list of the contrast values
between the colors