Skip to content

Moduland/pyrgb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


pyrgb

Python RGB Conversion Library

Installation

Source Code

PyPI

Functions

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)

Automated Build

Linux Windows

Issues & Bug Reports

Just fill an issue and describe it. We'll check it ASAP! or send an email to info@moduland.ir.

Contribution

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.

Donate to our project

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.

Bitcoin :

1XGr9qbZjBpUQJJSB6WtgBQbDTgrhPLPA

Payping (For Iranian citizens) :

Citing

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

License


Moduland Website