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
Built Distribution
File details
Details for the file ezcolors-1.0.7.tar.gz
.
File metadata
- Download URL: ezcolors-1.0.7.tar.gz
- Upload date:
- Size: 37.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6181ffb8e339703b96f506b71c595897aa9e964b2622853f9a635d8bd6c7e5d |
|
MD5 | 707b7a34e3c1c12bc1111c67c6f3c731 |
|
BLAKE2b-256 | e08325979640c972e6eca6c34e307d69cc1d46c972fe85e4e6ef100e97b9501a |
File details
Details for the file ezcolors-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: ezcolors-1.0.7-py3-none-any.whl
- Upload date:
- Size: 37.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2f32c340c249568b3a1f4a656a7c44ef8ae69ff8ee88fc0df47c83e553818d7 |
|
MD5 | 906e9a4461c049e5a3ea41ac3e7fbcc9 |
|
BLAKE2b-256 | bb2d24ab71f86d7e92959a864e1c2ee136b161296f12f3a07aa461b0afc6dca6 |