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.1.0.tar.gz (3.6 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.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nice_colorsys-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 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.1.0.tar.gz
Algorithm Hash digest
SHA256 4826e33a647bb328e504c04bd580188d7390c62cd37f2637af28e2cc744eafc0
MD5 5bb4f9d6e079bc81fc61fc64e4c074de
BLAKE2b-256 1975c51e6866946fd918339d202e1763087051dc846b4cd84b985efd3f334d62

See more details on using hashes here.

Provenance

The following attestation bundles were made for nice_colorsys-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: nice_colorsys-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a4f7df11b6e69643f7c3f84e1f131b6a658de84bbaeeb11e1566b27d5f3b996
MD5 c7503d818e79aad80eaa0857e3ee354c
BLAKE2b-256 3e28227c62d956dc74f0eb5fde9f11466d5c4bce2ac8788bd0f7f4bd2de195d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for nice_colorsys-0.1.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