Skip to main content

A very small library that may offer a nicer way of working with color systems.

Project description

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

With hsluv via nice_colorsys.hsluv

  • HSLuv
  • CIELUV
  • CIELCH
  • CIEXYZ

Example

from nice_colorsys import *

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

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

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

nice_colorsys-0.2.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

nice_colorsys-0.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file nice_colorsys-0.2.0.tar.gz.

File metadata

  • Download URL: nice_colorsys-0.2.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for nice_colorsys-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2af6fe750555c5da8fba6c52351dd0beda0819aad69cfa8aa65a1e565b3c88e0
MD5 ffba84b9b8ecb54ed315ae9a0f8ee3df
BLAKE2b-256 307724f1b1b80cdb1a105fc0a99c37487b248639b68d2ba2206d2eb8b6e9124c

See more details on using hashes here.

Provenance

The following attestation bundles were made for nice_colorsys-0.2.0.tar.gz:

Publisher: package.yml on actapia/nice_colorsys

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nice_colorsys-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nice_colorsys-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for nice_colorsys-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5797321230c4e95223f43afdb35f383ad0cc6254b6819a90f53d7ef0ceab28dc
MD5 d63f240683cef798e8a5ae82e96fbabd
BLAKE2b-256 758ae20583e200c8bd1dfec73f43f592968ec6416227e210974d71a273166cd0

See more details on using hashes here.

Provenance

The following attestation bundles were made for nice_colorsys-0.2.0-py3-none-any.whl:

Publisher: package.yml on actapia/nice_colorsys

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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