Metadata-Version: 2.4
Name: nice_colorsys
Version: 0.2.0
Summary: A very small library that may offer a nicer way of working with color systems.
Author-email: Andrew Tapia <andrew.tapia@uky.edu>
Project-URL: Homepage, https://github.com/actapia/nice_colorsys
Project-URL: Bug Tracker, https://github.com/actapia/nice_colorsys
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# nice_colorsys

This is a very small library that may offer a nicer way of working with and
converting between color systems than the default Python colorsys library.

In this library, a color in each supported color system is represented as a
`namedtuple` with `to_` methods for converting to different color systems.

## Supported color systems

### Main/built-in

* RGB (0.0&ndash;1.0)
* HLS
* HSV
* YIQ
* RGB (0&ndash;255) (with [`nice_colorsys.rgb255`](src/nice_colorsys/rgb255.py))

### With [hsluv](https://github.com/hsluv/hsluv-python) via [`nice_colorsys.hsluv`](src/nice_colorsys/hsluv.py)

* HSLuv
* CIELUV
* CIELCH
* CIEXYZ

## Example

```python
from nice_colorsys import *

print(hsv(0.5, 1, 1).to_hls())

# Output:
#
# hls(hue=0.5, lightness=0.5, saturation=1.0)
```
