actapia / nice_colorsys

Possibly nicer way of working with color systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

Possibly nicer way of working with color systems.

License:MIT License


Languages

Language:Python 100.0%