Material You color generation algorithms in pure python!
Project description
Material You color algorithms for python!
Minimal running example:
Run file tests/test_color_gen.py
as:
python3 test_color_gen.py <image path> <quality>
Maximum quality is 1
that means use all pixels, and quality number more than 1
means how many pixels to skip in between while reading, also you can see it as compression.
Install
You can easily install it from pip by executing:
pip3 install materialyoucolor --upgrade
Prebuilt binaries are avaliable for linux
, windows
and macos
.
Build and install
It is built in reference with offical typescript implementation but it's color quantization part is based on c++ implementation thanks to pybind.
# Install pybind 11
pip3 install pybind11
pip3 install https://github.com/T-Dynamos/materialyoucolor-pyhton/archive/develop.zip
FAQ
- How it is different from
avanisubbiah/material-color-utilities
?
See https://github.com/T-Dynamos/materialyoucolor-pyhton/issues/3
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
materialyoucolor-2.0.5.tar.gz
(44.2 kB
view hashes)
Built Distributions
Close
Hashes for materialyoucolor-2.0.5-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aca78c9cad53bf5c86cead8c23bba45913b92d8039252ba1a778318fa48cd52 |
|
MD5 | 553c6199e96e0a5d0ddc80daf2098751 |
|
BLAKE2b-256 | 729e65ada58895f219bba5ac0efb2b8b7c7e016440c0f8924af666e2e9b0a01b |
Close
Hashes for materialyoucolor-2.0.5-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dae027a0c846e0764fca721e6702321cda8b653542d6c4dffadceadfc1850fcc |
|
MD5 | 3403ab8776f439f246f28f46d4fc7dee |
|
BLAKE2b-256 | 7042fd1b48addd3b6e966982c24cca884a0e07a17cc144614fcfce387d38381c |
Close
Hashes for materialyoucolor-2.0.5-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed9a46a2c5a3c2e240ffd903a3ee1fab0b1690521636221729faea95d20fde0e |
|
MD5 | 5cbeb30373b02477b016ff63955c3762 |
|
BLAKE2b-256 | 244ddebf169e6cd6f2f974c4535c205c4b942677baad8cd2d29bea9675c73e76 |
Close
Hashes for materialyoucolor-2.0.5-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b578607dafb8bddcf41603f6ffb575bab1dd0ab89b72edc4b404e6163ed43e2 |
|
MD5 | 8d3a2c3cf88de0efc768909cccfb9221 |
|
BLAKE2b-256 | bc7834a0e262506aecfddf3413acac0405d10ee2fcf43bfa1aedc93146731add |
Close
Hashes for materialyoucolor-2.0.5-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f44a07ae00e3299f037d37ebe4c9741fb7959f7fa47fb49f167ca868009e7cb |
|
MD5 | 09f1b214a2953c27c9e08de71a447daf |
|
BLAKE2b-256 | ca261ce6490955eb6adcb69d3e1d9aa436bec853729e00c122528b1f5e419218 |
Close
Hashes for materialyoucolor-2.0.5-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44e01c29b942fcc1ea32812d2ba55a5b489768f1f8e7e987c5eca067364892cc |
|
MD5 | 6ed49e356a292960e840b0733c3b5737 |
|
BLAKE2b-256 | fb137edd4315673a737c99df74cb2b3bf3617415169bc198609e7467fd5cd638 |
Close
Hashes for materialyoucolor-2.0.5-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a5b9f8eed845ce7502801204daad84ef4575d07cc519b96cc00ce8e0107ae9f |
|
MD5 | fd0dedee10386c7a2910e923e3483bed |
|
BLAKE2b-256 | a2094b329b28d775075576ea8892c5cd7878dd8206fa85671cda4b412ec0523f |
Close
Hashes for materialyoucolor-2.0.5-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5864941ec5757c3a029845691a1b2aa0dc226d88f5fbda45d9d41f1ffc8b1c47 |
|
MD5 | aa4f337d1790d98d69ed4bb91b2dd0bd |
|
BLAKE2b-256 | 64eec4015d9fc4986b00e56b7f4cad57d53686e94521ab4db09873babff7dbf0 |
Close
Hashes for materialyoucolor-2.0.5-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6d7c08b1e22a00884d3fb0aa1f3954db54bfc680a18edba4059c1badfa1ac16 |
|
MD5 | 400f5fded748a88f629ba8eff488d09f |
|
BLAKE2b-256 | d7b23f6c442847572cc1ccfea81906f1d31786385310e127850248c0d420a3c1 |
Close
Hashes for materialyoucolor-2.0.5-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62d3d623e15254b9e74ac28774bc907f049a86169c4394f635f8136b3f921d10 |
|
MD5 | 62c42f1ec88f900487b04f46397d7d1a |
|
BLAKE2b-256 | 4992593f793a819767bd5a721cd03141f52a3dcc5ce519db82717f9ec323ff00 |
Close
Hashes for materialyoucolor-2.0.5-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc621963fb2c99957e4d05f74db5bb4ee755a3722683cf8f08c30383f7c6bae4 |
|
MD5 | e55f1f4693f65b0a5b5ed5e734f91a96 |
|
BLAKE2b-256 | 7a9b5b0459a8200677838a8261991fdaf88c5ea2b5f20a7c24474a7bfdde5b4d |
Close
Hashes for materialyoucolor-2.0.5-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75c7e0a744b4bd4f56caafc380d32be5e1faed6314b646a24a3ae3f1f44709c3 |
|
MD5 | b685c7e610e21779e227453b6182815a |
|
BLAKE2b-256 | e48eb06d66ec9096f1ac09616233872dec5d705f420d830e95b2c0d2457e6167 |
Close
Hashes for materialyoucolor-2.0.5-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e115130b2e55e1f42a905e409f47d66c6d8551a47df37132d87fe9c0d3eb81b |
|
MD5 | 5d3d856e77881c1169978ebe559822f3 |
|
BLAKE2b-256 | 8c9497559e5cac0bd863b64bd5f5e3349feee95c8a10ba4e8cf4c714870ca2c9 |
Close
Hashes for materialyoucolor-2.0.5-cp39-cp39-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a2d362aedf1c910e8dc84c4a31b04d45eb1f161fbd03056db3c3910f6d66a8f |
|
MD5 | 1e0a1dde2d2818db7bcaaffe32b2ca42 |
|
BLAKE2b-256 | cf4c3098ffa2c152094d1f5e4fef8e8c0dd89f540f1729982b6d9425df75ff2c |