Color Conversion
Project description
Hexadecimal to rgb
from color_convert import color
rgb = color.hex_to_rgb('#fff000')
print(rgb) # rgb(255,240,0)
Hexadecimal to rgba
from color_convert import color
rgba = color.hex_to_rgba('#fff000')
print(rgba) # rgba(255,240,0,1)
Decimal to hexadecimal
from color_convert import color
hex = color.ten_to_hex(16711680)
print(hex) # #ff0000
Decimal to rgb
from color_convert import color
hex_rgb = color.ten_to_rgb(16711680)
print(hex_rgb) # rgba(255,0,0,1)
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
color-convert-1.0.tar.gz
(2.0 kB
view details)
File details
Details for the file color-convert-1.0.tar.gz.
File metadata
- Download URL: color-convert-1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
39f5606fd71f2a5ed9f5274efb56dccc644a863c409aa08f825b6dea077d55d0
|
|
| MD5 |
8ab8becde5b641f4aa2275731a39368c
|
|
| BLAKE2b-256 |
2e38930a53ad80987c7bbd6d8c3baef6ed42815eb52509d879089b566644e1e3
|