A comprehensive colour manipulation and evaluation library
Project description
Pyletteyes
A comprehensive Python library for colour manipulation and evaluation.
Features
- Colour space conversions (Hex, RGB, HSL)
- Colour manipulation (lighten, darken, complementary colours)
- Palette generation and analysis
- Image colour extraction
Installation
pip install pyletteyes
Basic Usage Example
from pyletteyes.colour import Colour
# Create a colour and print RGB string
red = Colour.from_hex("#FF0000")
print(red) # outputs: rgb(255, 0, 0)
# Lighten it and output as HSL values
light_red = red.lighten(0.1)
print(light_red.hsl) # outputs: (0.0, 0.5980392156862745, 1.0)
# Darken it and print as an RGB string
dark_red = red.darken(0.2)
print(dark_red) # outputs: rgb(153, 0, 0)
# Get complementary colour and output as hex
complement = red.get_complementary()
print(complement.to_hex()) # outputs: #00feff
# Get a pastel from the complementary colour
pastel = complement.get_pastel()
print(pastel) # outputs: rgb(101, 203, 204)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyletteyes-0.1.0.tar.gz
(10.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyletteyes-0.1.0.tar.gz.
File metadata
- Download URL: pyletteyes-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
386445ecaaf00b2cb20e309608f7a47ebd9b4a49ad98d42e6391de20653cb989
|
|
| MD5 |
768898267750ec638eb29d97cfdbef5b
|
|
| BLAKE2b-256 |
3f1f8de4ecb61580644fb19cad458cdb668919641c764e0f79c6292745845149
|
File details
Details for the file pyletteyes-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyletteyes-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ca1e4fbd6aafa43edc92fc4893d8e72a0dbd884874e097f1d0e1ff86bb0b462
|
|
| MD5 |
1a1c4f2fcfe14015e00691edbfa3a199
|
|
| BLAKE2b-256 |
a3683189cd77336c742dc0957f5a954ca565902c24b12526100c5be57ae25598
|