https://github.com/simoso68/colorcodeconvert
A simple library to convert color codes.
https://github.com/simoso68/colorcodeconvert
color conversion hex library module python rgb
Last synced: 27 days ago
JSON representation
A simple library to convert color codes.
- Host: GitHub
- URL: https://github.com/simoso68/colorcodeconvert
- Owner: Simoso68
- License: gpl-3.0
- Created: 2023-10-07T02:36:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-20T11:17:54.000Z (about 2 years ago)
- Last Synced: 2025-06-09T11:59:47.965Z (about 1 year ago)
- Topics: color, conversion, hex, library, module, python, rgb
- Language: Python
- Homepage: https://pypi.org/project/colorcodeconvert
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
colorcodeconvert
pip install colorcodeconvert
## Examples
### From HEX to RGB
```python
from colorcodeconvert import *
# Prints the RGB value associated with the given HEX value.
print(convert(HexCode("#A0A0A0"), RGB))
```
### From RGB to HEX
```python
from colorcodeconvert import *
# Prints the HEX value associated with the given RGB value.
print(convert(RgbCode(160, 160, 160), HEX))
```
## Links
- [Source](https://github.com/Simoso68/colorcodeconvert)
- [Documentation](https://github.com/Simoso68/colorcodeconvert/wiki)
- [Open Issues](https://github.com/Simoso68/colorcodeconvert/issues)
- [Open Pull Requests](https://github.com/Simoso68/colorcodeconvert/pulls)
## Credits
README Badges made with [Shields.io](https://shields.io).
## License
This software is licensed under the GNU General Public License version 3.