Python RGB Conversion Library
-
Download Version 0.1 or Latest Source
-
python3 setup.py install
orpython setup.py install
(Need Root Access)
- Check Python Packaging User Guide
pip3 install pyrgb
orpip install pyrgb
(Need Root Access)
import pyrgb
#1- hsv_rgb
[R,G,B]=pyrgb.hsv_rgb(H,S,V)
#2- hsl_rgb
[R,G,B]=pyrgb.hsl_rgb(H,S,L)
#3- hex_rgb
[R,G,B]=pyrgb.hex_rgb('hex_string')
#4- cmyk_rgb
[R,G,B]=pyrgb.cmyk_rgb(C,M,Y,K)
#5- rgb_hex
hex_string=pyrgb.rgb_hex(R,G,B)
#6- rgb_hsv
[H,S,V]=pyrgb.rgb_hsv(R,G,B)
#7- rgb_hsl
[H,S,L]=pyrgb.rgb_hsl(R,G,B)
#8- rgb_cmyk
[C,M,Y,K]=pyrgb.rgb_cmyk(R,G,B)
- H: Hue (0<=H<360)
- S: Saturation (0<S<1)
- V: Value (0<V<1)
- L: Lightness (0<L<1)
- C,M,Y,K : (0,1)
- R,G,B : (0-255)
Just fill an issue and describe it. We'll check it ASAP! or send an email to info@moduland.ir.
You can fork the repository, improve or fix some part of it and then send the pull requests back if you want to see them here. I really appreciate that. โค๏ธ
Remember to write a few tests for your code before sending pull requests.
If you feel like our project is important can you please support us? Our project is not and is never going to be working for profit. We need the money just so we can continue doing what we do.
1XGr9qbZjBpUQJJSB6WtgBQbDTgrhPLPA
If you use pyrgb in your research , please cite this ;-)
Sepand Haghighi. (2017, July 28). Moduland/pyrgb: Version 0.1. Zenodo. http://doi.org/10.5281/zenodo.835824