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

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.0.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

nice_colorsys-0.0.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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