A useful package which handles the utilities of converting colors to different forms.
- Modern pythonic syntax.
- Easy utility to convert colors to hex and vice versa.
- Easilly installable via PyPI.
- Weekly major updates.
Requires Python 3.6 or higher for desired results.
The below codes show you how to install in various OSes
# Windows
py -3 -m pip install -U colorconverters
# Linux/MacOS
python3 -m pip install -U colorconverters
If you want to get beta and alpha versions, then install it this way instead.
# Windows
git clone https://github.com/ThatGenZGamer48/colorconverters
cd colorconverters
py -3 -m pip install -U .
# Linux/MacOS
git clone https://github.com/ThatGenZGamer48/colorconverters
cd colorconverters
python3 -m pip install -U .
import colorconverters
# To convert to hex
colorconverters.color_to_hex('red')
# To convert to color
colorconverters.hex_to_color('#FFFFFF')