From 0f6fd394f39406b76e8f18fe4c2ddb791194f978 Mon Sep 17 00:00:00 2001 From: Chandler J Date: Mon, 18 Mar 2024 13:14:40 -0600 Subject: began implementating save states for color palettes and MOAR POLISH --- src/color_engine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/color_engine.py') 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 -- cgit v1.2.3