Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Tests/ColorObjects/test_HSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# ----------------------------------------------------------------------------------------------------------------------
# - Code -
# ----------------------------------------------------------------------------------------------------------------------
# noinspection PyTypeChecker
class ColorObjects_HSL(unittest.TestCase):
@staticmethod
def CreateColor(h=60,s=.5,l=.75) -> HSL:
Expand All @@ -32,6 +33,7 @@ def test_repr(self):
def test_str(self):
self.assertEqual(str(self.CreateColor()),"60;0.5;0.75")

# noinspection PyTypeChecker
def test_dunder_tuples(self):
color = self.CreateColor()
# Comparison
Expand Down
2 changes: 2 additions & 0 deletions Tests/ColorObjects/test_HSV.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# ----------------------------------------------------------------------------------------------------------------------
# - Code -
# ----------------------------------------------------------------------------------------------------------------------
# noinspection PyTypeChecker
class ColorObjects_HSV(unittest.TestCase):
@staticmethod
def CreateColor(h=.25,s=.5,v=.75) -> HSV:
Expand All @@ -32,6 +33,7 @@ def test_repr(self):
def test_str(self):
self.assertEqual(str(self.CreateColor()),"0.25;0.5;0.75")

# noinspection PyTypeChecker
def test_dunder_tuples(self):
color = self.CreateColor()
# Comparison
Expand Down
2 changes: 1 addition & 1 deletion Tests/SpeedTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def TextNested():
return a,b,c

def TextNestedBig():
a = StyleNest.Bold(
StyleNest.Bold(
StyleNest.Bold(
StyleNest.Bold(
StyleNest.Bold(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setuptools.setup(
name="AthenaColor",
version="4.1.1",
version="4.1.2",
author="Andreas Sas",
author_email="",
description="Package to support full usage of RGB colors in the Console.",
Expand Down
4 changes: 2 additions & 2 deletions src/AthenaColor/Functions/ANSIsquences.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def NestedColorSequence(obj:tuple, color_code:str, reset_code:int|str, sep:str="
# SHHH, don't touch this, this is speed 101
text = ""
for o in obj[:-1]:
text += f"{color_code}{o}{sep}{reset_code}" # SEP moved to within the color - reset, as previously, it was color-reset anyways
text += f"{color_code}{o}{sep}{reset_code}" # SEP moved to within the color - reset, as previously, it was color-reset anyway
return text + f"{color_code}{obj[-1]}{reset_code}"

def NestedColorSequence_NoReset(obj:tuple, color_code:int|str, sep:str=" ") -> str:
Expand All @@ -49,5 +49,5 @@ def NestedColorSequence_NoReset(obj:tuple, color_code:int|str, sep:str=" ") -> s
# SHHH, don't touch this, this is speed 101
text = ""
for o in obj[:-1]:
text += f"{color_code}{o}{sep}" # SEP moved to within the color - reset, as previously, it was color-reset anyways
text += f"{color_code}{o}{sep}" # SEP moved to within the color - reset, as previously, it was color-reset anyway
return text + f"{color_code}{obj[-1]}"
2 changes: 1 addition & 1 deletion src/AthenaColor/Objects/Color/ColorSystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# - All -
# ----------------------------------------------------------------------------------------------------------------------
__all__ = [
"ColorSystem", "RGB", "RGBA", "HEX", "HEXA", "HSV", "HSL", "CMYK"
"ColorSystem", "RGB", "RGBA", "HEX", "HEXA", "HSV", "HSL", "CMYK", "NormalizeRgb", "color_conversions_mapped"
]

# ----------------------------------------------------------------------------------------------------------------------
Expand Down