: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 Distribution
hexacolors-0.6.2.tar.gz
(7.5 kB
view details)
File details
Details for the file hexacolors-0.6.2.tar.gz
.
File metadata
- Download URL: hexacolors-0.6.2.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2996870b6404b617c5468c47ba28e2b3c3f6f7038fdbd7a45c7f66cf68ea409 |
|
MD5 | 72ba0a53503c777d7853fc68100fd491 |
|
BLAKE2b-256 | 9261dbcbf86be6c1d984c91ab12d05801e51597b2412a016627b4fbee996e459 |