Fighting for more harmony through less coding resulting in increased development speed. At least that would be nice!
Project description
Harmonized
When developing prototypes with Python conversion and casting can be time consuming and challeging. With harmonized we try to ease this process by providing ready to use helper scripts and tools.
hexcolor
Working with colors in RGB space. Converting between hex strings like #FF4470, RGB normed floats [0.0 - 1.0] and HSV normed floats. Quickstart ...
Create color:
from harmonized import hexcolor
color = hexcolor.HexColor("#FF4470")
Get color values:
# get RGB values
print(color.r, color.g, color.b)
# get HSV values
print(color.h, color.s, color.v)
# get HexColor string
print(color)
Set via rgb or hsv floats:
# set red via rgb
color.set_from_hsv(0, 1, 1)
# set red via rgb
color.set_from_rgb(1, 0, 0)
inout
Simplified handling of loading and writing files. Making reading from file or HTTP exchangable with local file reading. Local caching possible.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for harmonized-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1de16632b2d40ad4342bf497c3854c552fa37a7f3be2a2a2811d19c00be4af6 |
|
MD5 | 9fd94ec39cee2cb7f47a86634b777170 |
|
BLAKE2b-256 | 6eb2674a42fb69428f864cb0cb64dc0e19bf64b3f0e1a3d080f95a0679f6a88a |