https://github.com/basemax/colorconvertpy
Tiny library to convert various colored units. (rgb, hex)
https://github.com/basemax/colorconvertpy
color color-conversion color-convert color-converter python python-2 python-3 python-3-6 python-library python-script python2 python27 python3 python36
Last synced: 3 months ago
JSON representation
Tiny library to convert various colored units. (rgb, hex)
- Host: GitHub
- URL: https://github.com/basemax/colorconvertpy
- Owner: BaseMax
- License: mit
- Created: 2019-03-29T12:49:19.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-31T01:18:05.000Z (about 6 years ago)
- Last Synced: 2025-01-17T03:38:42.753Z (4 months ago)
- Topics: color, color-conversion, color-convert, color-converter, python, python-2, python-3, python-3-6, python-library, python-script, python2, python27, python3, python36
- Language: Python
- Homepage:
- Size: 50.8 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Color Convert Python
Tiny library to convert various colored units. (rgb, hex)
## Sample
#### Import
```python
from ColorConvert import *
```### Using
```python
hex = rgb2hex((255,255,255))
print( hex ) # FFFFFF
print( hex2rgb( hex ) ) # (255, 255, 255)
```## Install
**$ sudo python setup.py install**
```
running install
running bdist_egg
running egg_info
creating ColorConvert.egg-info
writing ColorConvert.egg-info/PKG-INFO
writing top-level names to ColorConvert.egg-info/top_level.txt
writing dependency_links to ColorConvert.egg-info/dependency_links.txt
writing manifest file 'ColorConvert.egg-info/SOURCES.txt'
reading manifest file 'ColorConvert.egg-info/SOURCES.txt'
writing manifest file 'ColorConvert.egg-info/SOURCES.txt'
installing library code to build/bdist.freebsd-12.0-RELEASE-amd64/egg
running install_lib
warning: install_lib: 'build/lib' does not exist -- no Python modules to installcreating build
creating build/bdist.freebsd-12.0-RELEASE-amd64
creating build/bdist.freebsd-12.0-RELEASE-amd64/egg
creating build/bdist.freebsd-12.0-RELEASE-amd64/egg/EGG-INFO
installing scripts to build/bdist.freebsd-12.0-RELEASE-amd64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-2.7
copying and adjusting ColorConvert.py -> build/scripts-2.7
changing mode of build/scripts-2.7/ColorConvert.py from 644 to 755
creating build/bdist.freebsd-12.0-RELEASE-amd64/egg/EGG-INFO/scripts
copying build/scripts-2.7/ColorConvert.py -> build/bdist.freebsd-12.0-RELEASE-amd64/egg/EGG-INFO/scripts
changing mode of build/bdist.freebsd-12.0-RELEASE-amd64/egg/EGG-INFO/scripts/ColorConvert.py to 755
copying ColorConvert.egg-info/PKG-INFO -> build/bdist.freebsd-12.0-RELEASE-amd64/egg/EGG-INFO
copying ColorConvert.egg-info/SOURCES.txt -> build/bdist.freebsd-12.0-RELEASE-amd64/egg/EGG-INFO
copying ColorConvert.egg-info/dependency_links.txt -> build/bdist.freebsd-12.0-RELEASE-amd64/egg/EGG-INFO
copying ColorConvert.egg-info/top_level.txt -> build/bdist.freebsd-12.0-RELEASE-amd64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/ColorConvert-1.0-py2.7.egg' and adding 'build/bdist.freebsd-12.0-RELEASE-amd64/egg' to it
removing 'build/bdist.freebsd-12.0-RELEASE-amd64/egg' (and everything under it)
Processing ColorConvert-1.0-py2.7.egg
Copying ColorConvert-1.0-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding ColorConvert 1.0 to easy-install.pth file
Installing ColorConvert.py script to /usr/local/binInstalled /usr/local/lib/python2.7/site-packages/ColorConvert-1.0-py2.7.egg
Processing dependencies for ColorConvert==1.0
Finished processing dependencies for ColorConvert==1.0
```---------
## Useful Resources
- https://docs.python.org/2/install/
- https://packaging.python.org/tutorials/installing-packages/
- https://python-packaging-tutorial.readthedocs.io/en/latest/setup_py.html
- https://python-packaging.readthedocs.io/en/latest/