invertcolor
invertcolor is a lightweight Python library for inverting RGB color values. It makes it simple to generate the complementary color of any RGB input.
Features
- Invert any RGB color tuple
(R, G, B) - Easy to use with a single function call
- Lightweight and dependency-free
Installation
Install via PyPI:
pip install invertcolor
Usage
The main function, invert_rgb_color, takes an RGB color tuple and returns its inverted color.
from invertcolor import invert_rgb_color
# Original color: red
red = (255, 0, 0)
# Inverted color: cyan
inverted_red = invert_rgb_color(red)
print(f"Inverted color: {inverted_red}")
# Output: (0, 255, 255)
# Another example: gray
gray = (128, 128, 128)
inverted_gray = invert_rgb_color(gray)
print(f"Inverted gray: {inverted_gray}")
# Output: (127, 127, 127)
Contributing
Contributions, issues, and feature requests are welcome! Feel free to fork the repository and submit a pull request. Repository link
License
This project is licensed under the MIT License.
Metadata
Release files for invertcolor 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| invertcolor-0.1.0.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| invertcolor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.6 kB
Release files / invertcolor-0.1.0.tar.gz
| Download URL | invertcolor-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d111ade504b5e0a83f09355c75471bf59732506e9b9299f61d0a14f1c93478e
|
|
BLAKE2b-256 checksum How to use checksums |
f2b6d73b637efba40229e9ce9193e6817d754df101246cfbc86355f7daef46bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / invertcolor-0.1.0-py3-none-any.whl
| Download URL | invertcolor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63b09df1b50fd171fb5ef7d4e3b3dd5b1e19e7c7a7c836b3e0ed034f9341aaa0
|
|
BLAKE2b-256 checksum How to use checksums |
234014aa081f3d347738289ffe8ed342cc18e1354153f7bf1bcf747df2a28e7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for invertcolor 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.