yoonthegoon / colors

Python package for color manipulation and conversions between color spaces.
GNU General Public License v3.0
0 stars 0 forks source link

Add Color Spaces and Methods to Convert Between Them #1

Closed yoonthegoon closed 6 months ago

yoonthegoon commented 6 months ago

Also need to add a color wrapper. Ideally, this acts like a simple API allowing users to not have to interact with all the ColorSpace classes directly. Example usage:


>>> from colors import Color
>>> 
>>> c = Color("sRGB", (1, 0, 0))
>>> c
sRGB(1, 0, 0)
>>> c.space = "XYZ"
>>> c
XYZ(0.412456, 0.212673, 0.019334)
yoonthegoon commented 6 months ago

Need to convert XYZ to and from CIELab, CIELuv, and sRGB.

yoonthegoon commented 6 months ago

Need to write setter for values for each color space to ensure its values are bound properly. Also need to write tests ensuring everything works as expected, especially at edge cases (literally).

yoonthegoon commented 6 months ago

TBH this covers what the issue requires. All the other wants, I'll put into a new issue.