Color strings using ANSI escape codes. Uses "dithering" to attempt to match the specified RGB value as close as possible.
Project description
A package to color text with ANSI escape codes, but takes in an RGB value and uses dithering to try match it.
The colorize_text function accepts a string and a RGB tuple. It returns the colorized string. To see the package in use you can try the run_example function.
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
colordithering-0.5.tar.gz
(2.7 kB
view details)
File details
Details for the file colordithering-0.5.tar.gz.
File metadata
- Download URL: colordithering-0.5.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65aad4908d1170ae84f8a784f3137ce09157ed0e972895e9d28bbafc4f357a43
|
|
| MD5 |
8f5ae417376d0916e0a047f4268efb9b
|
|
| BLAKE2b-256 |
973ef382b34ec27733ab27d542068d85c037e6cc20faf51ba97dd99236a488aa
|