big readme overhaul, full instructions on flags and such now

This commit is contained in:
2025-01-20 01:35:49 -05:00
parent fd9e5533b9
commit 04afd19a53
2 changed files with 64 additions and 51 deletions
+3 -2
View File
@@ -349,7 +349,6 @@ def RGBtoHSVorHSL(rgbValues, convertTo) :
chroma = xMax - xMin
# Convert by following formula
value = xMax
lightness = (xMax + xMin) / 2
@@ -501,9 +500,11 @@ def extractValues(color, numValues, isHex = False) :
while i < len(color) :
if color[i].isnumeric() or color[i] == '.' :
tempValue += color[i]
elif len(tempValue) > 0 :
elif len(tempValue) > 0 and tempValue != '.' :
extractedValues.append(tempValue)
tempValue = ''
else :
tempValue = ''
if len(extractedValues) == numValues :
break
i = i + 1