:A simple library that converts string to hexadecimal understandable by python
Project description
Hexacolors
A simple library that converts string to hexadecimal understandable by python
A simple library that converts RGB to hexadecimal understandable by python
A simple library that converts CMYK to hexadecimal understandable by python
A simple library that converts HSL to hexadecimal understandable by python
A simple library that converts hexadecimal understandable by python
I created this library more to use as pycord integration
Usage:
install with pip
pip install hexacolors
Import on your code:
import hexacolors
Run it
Run if online:
Using StringColor:
>>> import hexacolors
>>> hexacolors.stringColor('Blue')
>>> print(hexacolors.listall) #List all colors availables
Using HexaColor:
>>> import hexacolors
>>> hexacolors.hexadecimal('#0000FF') #Convert Hexadecimal Color for Python understand
Using rgb:
>>> import hexacolors
>>> hexacolors.rgb("255,255,255")
Using cmyk:
>>> import hexacolors
>>> hexacolors.cmyk("423,522,4,244")
Using hsl:
>>> import hexacolors
>>> hexacolors.hsl('423,60%,70%')
Using AutoDetect:
>>> import hexacolors
>>> hexacolors.autodetect('Blue') #Identify string
>>> hexacolors.autodetect('#fff000') #Identify Hexadecimal
>>> hexacolors.autodetect('255,255,255') #Identify RGB
>>> hexacolors.autodetect('423,522,4,244') #Identify CMYK
>>> hexacolors.autodetect('255,75%,64%') #Identify HSL
Run if offline:
Using StringColor:
>>> import hexacolors
>>>
>>> hexacolors.stringColor('Blue')
>>>
>>> print(hexacolors.listall) #List all colors availables
Using HexaColor:
>>> import hexacolors
>>>
>>> hexacolors.hexadecimaloff('#0000FF') #Convert Hexadecimal Color for Python understand
Using rgb:
>>> import hexacolors
>>>
>>> hexacolors.rgboff(255,255,255)
Using cmyk:
>>> import hexacolors
>>>
>>> hexacolors.cmykoff(423,522,4,244)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for hexacolors-0.6.0b3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11496068c8478dd97361b178ad9a9b3351b0f624c74d453794b6be9dd91f060c |
|
MD5 | 3487cf726f93fbe3feb5521c4a69074a |
|
BLAKE2b-256 | f2951bf2f7e28124c6f3c53ba8d42a639857c4bd2dd5477a42fc4597cfd0e27f |