Skip to main content

No project description provided

Project description

Polychromos

πολύχρωμοςGreek; multicolored.

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

Full documentation

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polychromos-1.5.0.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polychromos-1.5.0-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file polychromos-1.5.0.tar.gz.

File metadata

  • Download URL: polychromos-1.5.0.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for polychromos-1.5.0.tar.gz
Algorithm Hash digest
SHA256 c3dd4b065842437e79ad238ea22b59435e058d74711573662ab6950cc6a62219
MD5 b7f1bcfb469f93e6fca9ae10d7a1f907
BLAKE2b-256 524d6661afb6062dd17cf00397f0a53822c29c6e06da04dc9099316e2025e79e

See more details on using hashes here.

File details

Details for the file polychromos-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: polychromos-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for polychromos-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5b9375257c5a42d770a2e4f8f70f250c3dc33ba3b3fc69f1de6b0cc3b0ea250
MD5 9128c8730af3305224754c2523eb91a5
BLAKE2b-256 3f749aae71a6bbd99fce914dbca62ebab64f6db8dbdffcecd9909d5efbefbdea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page