An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

colorcodeconvert

PyPI - Python Version
PyPI - Downloads
GitHub



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.