Metadata-Version: 2.4
Name: polychromos
Version: 1.5.0
Project-URL: Homepage, https://gitlab.com/Kencho1/polychromos
Project-URL: Repository, https://gitlab.com/Kencho1/polychromos
Project-URL: Issues, https://gitlab.com/Kencho1/polychromos/-/issues
Project-URL: Changelog, https://gitlab.com/Kencho1/polychromos/-/blob/main/CHANGELOG.md
Project-URL: Documentation, https://polychromos.readthedocs.io/en/latest
Author: Jesús Alonso Abad
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Artistic Software
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Typing :: Typed
Requires-Python: >=3.11
Provides-Extra: test
Requires-Dist: mypy~=1.8; extra == 'test'
Requires-Dist: pytest-cov~=4.0; extra == 'test'
Requires-Dist: pytest~=7.0; extra == 'test'
Requires-Dist: ruff~=0.8; extra == 'test'
Description-Content-Type: text/markdown

# Polychromos

> **πολύχρωμος** — _Greek; multicolored._

Color and palette utility library using HSL color theory and an artistic approach.

**[Full documentation](https://polychromos.readthedocs.io/en/latest)**

## Installation

```bash
pip install polychromos
```

## Quick start

```python
from polychromos import HSLColor, Palette

red  = HSLColor.from_abs_hsla(0, 100, 50)
blue = HSLColor.from_abs_hsla(240, 100, 50)

# 5-color gradient from red to blue
sequence = Palette.sequence_from_linear_interpolation(red, blue, 5)

# Continuous color scale with easing
scale = Palette.to_color_scale(sequence)
color = Palette.scale_lerp(scale, (0.0, 100.0), 42.0)
```

## License

MIT
