Skip to main content

Material You color generation algorithms in pure python!

Project description

image

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.

Click to view result

Image Used, size was 8MB

image image

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

  1. How it is different from avanisubbiah/material-color-utilities?

See https://github.com/T-Dynamos/materialyoucolor-pyhton/issues/3

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

materialyoucolor-2.0.3.tar.gz (37.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

materialyoucolor-2.0.3-cp312-cp312-win_amd64.whl (105.8 kB view details)

Uploaded CPython 3.12Windows x86-64

materialyoucolor-2.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (127.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

materialyoucolor-2.0.3-cp312-cp312-macosx_10_9_universal2.whl (183.7 kB view details)

Uploaded CPython 3.12macOS 10.9+ universal2 (ARM64, x86-64)

materialyoucolor-2.0.3-cp311-cp311-win_amd64.whl (105.4 kB view details)

Uploaded CPython 3.11Windows x86-64

materialyoucolor-2.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (127.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

materialyoucolor-2.0.3-cp311-cp311-macosx_10_9_universal2.whl (188.7 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

materialyoucolor-2.0.3-cp310-cp310-win_amd64.whl (104.3 kB view details)

Uploaded CPython 3.10Windows x86-64

materialyoucolor-2.0.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (126.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

materialyoucolor-2.0.3-cp310-cp310-macosx_11_0_x86_64.whl (114.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

materialyoucolor-2.0.3-cp39-cp39-win_amd64.whl (104.3 kB view details)

Uploaded CPython 3.9Windows x86-64

materialyoucolor-2.0.3-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (126.5 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

materialyoucolor-2.0.3-cp39-cp39-macosx_11_0_x86_64.whl (114.9 kB view details)

Uploaded CPython 3.9macOS 11.0+ x86-64

File details

Details for the file materialyoucolor-2.0.3.tar.gz.

File metadata

  • Download URL: materialyoucolor-2.0.3.tar.gz
  • Upload date:
  • Size: 37.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for materialyoucolor-2.0.3.tar.gz
Algorithm Hash digest
SHA256 3d5c5257b3d138cad9b89f46cbecb4597f4e7d0c38ac6cbc77d3cdf56acb5cbd
MD5 d6ba6a70d0a577271886902165362e71
BLAKE2b-256 d2b515d67d50772258879b8e103b3556d61d0d515ead33f17ba6be22ad477b45

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 44160163f0e2da3ec65a0fbefbbdf5def7bb239b03d5bb2f0a8d9b034343afc9
MD5 64b41b1083012038df835d0444d84150
BLAKE2b-256 79276afc434c99d53761f62f83cba1885ddf2eaee89dfbc5aae4cac680c6468c

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp312-cp312-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.3-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 fc4dff480ef418995cf3c74f1bb379dc4d6bec467df2220288df33a7e5924d9e
MD5 29aa269c8d94e9c39cd864737b6be11e
BLAKE2b-256 472d3eae196662228c8ea032f93464411b5c605a3e8a1a9c7967d1a7645f1aec

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.3-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a8ba78ae21bff3a349c7ceedb62a753e702a3fcf536e0153f8b7785ea04989c8
MD5 360a5e4a13fff463aa52015e316959b9
BLAKE2b-256 c10afae101fccdac6b55679ce4b3e9462ce5904756281268478ee1923b1b7b77

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.3-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 207b2e60967d85e1f50a38de8a205f3196c95b3439d2553b483f31c67fd8b7f6
MD5 47b4f2f6daf769b8f67ab4b2c17aadff
BLAKE2b-256 1d0927955953297821ae3d90bf37d2dc8b1cd95d3d6195483b7083ac4d318aa4

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.3-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 49c6d89a8a5a68e001d77f9ba36dd24fdd4e5881788e0cb552995fbf85e1e498
MD5 fbcb1eb23b64f778e4cb61084b31fe95
BLAKE2b-256 4858c07aca500a4f2d92a02d59c2a7a01b605123c89752270fc753f89862d282

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.3-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 fed5c1439d1d9de750ee49b00adb90441c629695d45f71478616d07de6928cfe
MD5 f9b9b23dd4de08ec31f3b747bc362dc4
BLAKE2b-256 1ce907120e6b10dfa0fab77c234ebabdf23e7cfcf5f886d2d1e5513930bfe7ff

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.3-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a17fd38ee3140ba9d41118b0c027d43cd9bb1e6c51e2e2d0a8fcc6600f19d874
MD5 b84010f53bbfb43219b7a0c02733fba1
BLAKE2b-256 b39a5220f7bf3ffd9fc08cf5e687d0ad18eb8af9db5eb4a0c3b17b64c706d2a1

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

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

See more details on using hashes here.

File details

Details for the file materialyoucolor-2.0.3-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for materialyoucolor-2.0.3-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 e9c4743abae40016093d55cd572885043d7caf575bf0ce4f8f8c3ab452ca9308
MD5 888d15d5105260373996db2a3d8627ed
BLAKE2b-256 60904cf3e44813b963a4d40c0d8783ceef5261b8d940c04b78b1b0b7718a8309

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page