Polychromos
πολύχρωμος — Greek; multicolored.
Color and palette utility library using HSL color theory and an artistic approach.
Installation
pip install polychromos
Quick start
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
Release files for polychromos 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| polychromos-1.5.0.tar.gz | 19.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polychromos-1.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.1 kB
Release files / polychromos-1.5.0.tar.gz
| Download URL | polychromos-1.5.0.tar.gz |
|---|---|
| Size | 19.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3dd4b065842437e79ad238ea22b59435e058d74711573662ab6950cc6a62219
|
|
BLAKE2b-256 checksum How to use checksums |
524d6661afb6062dd17cf00397f0a53822c29c6e06da04dc9099316e2025e79e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / polychromos-1.5.0-py3-none-any.whl
| Download URL | polychromos-1.5.0-py3-none-any.whl |
|---|---|
| Size | 20.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5b9375257c5a42d770a2e4f8f70f250c3dc33ba3b3fc69f1de6b0cc3b0ea250
|
|
BLAKE2b-256 checksum How to use checksums |
3f749aae71a6bbd99fce914dbca62ebab64f6db8dbdffcecd9909d5efbefbdea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|