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.3.tar.gz
(37.9 kB
view hashes)
Built Distributions
Close
Hashes for materialyoucolor-2.0.3-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44160163f0e2da3ec65a0fbefbbdf5def7bb239b03d5bb2f0a8d9b034343afc9 |
|
MD5 | 64b41b1083012038df835d0444d84150 |
|
BLAKE2b-256 | 79276afc434c99d53761f62f83cba1885ddf2eaee89dfbc5aae4cac680c6468c |
Close
Hashes for materialyoucolor-2.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b281cfafb2898b2b751ed8b49bc72dd19f1be2e21b1eed27701b588eeb8ee9c |
|
MD5 | 463911c9007c75d85e3af513553ec1e8 |
|
BLAKE2b-256 | 72d71bb963f484379b7098371b3de9f9e025726c08c84428546cfdf521df7c64 |
Close
Hashes for materialyoucolor-2.0.3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc4dff480ef418995cf3c74f1bb379dc4d6bec467df2220288df33a7e5924d9e |
|
MD5 | 29aa269c8d94e9c39cd864737b6be11e |
|
BLAKE2b-256 | 472d3eae196662228c8ea032f93464411b5c605a3e8a1a9c7967d1a7645f1aec |
Close
Hashes for materialyoucolor-2.0.3-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ba78ae21bff3a349c7ceedb62a753e702a3fcf536e0153f8b7785ea04989c8 |
|
MD5 | 360a5e4a13fff463aa52015e316959b9 |
|
BLAKE2b-256 | c10afae101fccdac6b55679ce4b3e9462ce5904756281268478ee1923b1b7b77 |
Close
Hashes for materialyoucolor-2.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39e0a3d6c23b677956418340ecec8043e7aebb16bbf383adb0233e47a8819e1d |
|
MD5 | 7935d9758ee12299085f5613c951bf48 |
|
BLAKE2b-256 | a701bc27a2d706d112ec55746a0eeb8facb6d9963e57f81c9034cc0d99eb3a7b |
Close
Hashes for materialyoucolor-2.0.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 207b2e60967d85e1f50a38de8a205f3196c95b3439d2553b483f31c67fd8b7f6 |
|
MD5 | 47b4f2f6daf769b8f67ab4b2c17aadff |
|
BLAKE2b-256 | 1d0927955953297821ae3d90bf37d2dc8b1cd95d3d6195483b7083ac4d318aa4 |
Close
Hashes for materialyoucolor-2.0.3-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49c6d89a8a5a68e001d77f9ba36dd24fdd4e5881788e0cb552995fbf85e1e498 |
|
MD5 | fbcb1eb23b64f778e4cb61084b31fe95 |
|
BLAKE2b-256 | 4858c07aca500a4f2d92a02d59c2a7a01b605123c89752270fc753f89862d282 |
Close
Hashes for materialyoucolor-2.0.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3e1ad82b924ea42cdbd386c72e1a269f0266a382c78a58abb5c8f000379d9b9 |
|
MD5 | 11ff34cff777c2d79f7b924785d5eb5f |
|
BLAKE2b-256 | 6672642450c4b58e6fe9a093ddc8019a2a862da3b89c3bf5b56f7d3afafdd352 |
Close
Hashes for materialyoucolor-2.0.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fed5c1439d1d9de750ee49b00adb90441c629695d45f71478616d07de6928cfe |
|
MD5 | f9b9b23dd4de08ec31f3b747bc362dc4 |
|
BLAKE2b-256 | 1ce907120e6b10dfa0fab77c234ebabdf23e7cfcf5f886d2d1e5513930bfe7ff |
Close
Hashes for materialyoucolor-2.0.3-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a17fd38ee3140ba9d41118b0c027d43cd9bb1e6c51e2e2d0a8fcc6600f19d874 |
|
MD5 | b84010f53bbfb43219b7a0c02733fba1 |
|
BLAKE2b-256 | b39a5220f7bf3ffd9fc08cf5e687d0ad18eb8af9db5eb4a0c3b17b64c706d2a1 |
Close
Hashes for materialyoucolor-2.0.3-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3c8d03451f16e1a18d2ff0eb5c4a691211bdd15a10efe327842e7d503b4e446 |
|
MD5 | bfd7417578b379cefdd1928f44831f6a |
|
BLAKE2b-256 | 81a710b380e41ed3b353f64ec469419ae0705a408c28a36191411b85fd01de62 |
Close
Hashes for materialyoucolor-2.0.3-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9c4743abae40016093d55cd572885043d7caf575bf0ce4f8f8c3ab452ca9308 |
|
MD5 | 888d15d5105260373996db2a3d8627ed |
|
BLAKE2b-256 | 60904cf3e44813b963a4d40c0d8783ceef5261b8d940c04b78b1b0b7718a8309 |