Skip to main content

Easy colors and color math

Project description

A simple library that contains a ColorColour class for fast and easy definition of colours in python.

you can define a colour from

hex -- Colour(#ff00ff)
RGB -- Colour(255, 0, 255)
rgba -- Colour(255, 0, 255, 128)
hsl -- Colour(hsl = [270, 100, 50])
hsv -- Colour(hsv = [270, 100, 100])
colour name -- Colour(Light Purple)

with these colours you can then

perform math upon it
translate it to any color space
compare it to other colours
colour a string with ANSI escape sequences
generate a colour palette with various different colour harmonies (see palettes module)

This package was entirely authored on a Samsung A5 so please excuse any spelling errors etc and let me know if you find any issues

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

ezcolors-1.0.7.tar.gz (37.7 kB view hashes)

Uploaded Source

Built Distribution

ezcolors-1.0.7-py3-none-any.whl (37.3 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