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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

materialyoucolor-2.0.0-cp312-cp312-win_amd64.whl (96.9 kB view details)

Uploaded CPython 3.12Windows x86-64

materialyoucolor-2.0.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (118.2 kB view details)

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

materialyoucolor-2.0.0-cp312-cp312-macosx_10_9_universal2.whl (172.8 kB view details)

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

materialyoucolor-2.0.0-cp311-cp311-win_amd64.whl (97.8 kB view details)

Uploaded CPython 3.11Windows x86-64

materialyoucolor-2.0.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (118.5 kB view details)

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

materialyoucolor-2.0.0-cp311-cp311-macosx_10_9_universal2.whl (177.9 kB view details)

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

materialyoucolor-2.0.0-cp310-cp310-win_amd64.whl (96.7 kB view details)

Uploaded CPython 3.10Windows x86-64

materialyoucolor-2.0.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (117.2 kB view details)

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

materialyoucolor-2.0.0-cp310-cp310-macosx_11_0_x86_64.whl (105.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

materialyoucolor-2.0.0-cp39-cp39-win_amd64.whl (96.5 kB view details)

Uploaded CPython 3.9Windows x86-64

materialyoucolor-2.0.0-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (117.4 kB view details)

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

materialyoucolor-2.0.0-cp39-cp39-macosx_11_0_x86_64.whl (105.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ x86-64

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 69c46769687adfcb8cbd3bccb997dbe196f4bbd0ae391e7c42aeb21759be9fb3
MD5 41ab5d4357d33f0d57358e85256bd353
BLAKE2b-256 1249fcb55ae84abf83b90c30d095cbde8924695f3bf31093dba6e935162737b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b0548dbf77edff561b94ee8a0a3657e678ef872a785f39dd3dd6aa60725544e0
MD5 eb09736a73e4632185934b5154697b5b
BLAKE2b-256 2198eb5a5d00f1f63b09b6860e1af86125c41f387a0c63f52bd06d6f63831cca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 cb22f8c49a8a71feee7484bdf3e4e77c658f0693f53dcc4b82fb4325cbae909c
MD5 167cce729b4cef5fc00c0efd4184dde3
BLAKE2b-256 5b1eb5be0982074fd4b991d3b5bd52ca1d3fce8d6400337f8fcbe79b22ad3b70

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fddf7fb2ff7216c7deeda116f564cd8aa61cd3ffdd9573c7fe43cec5481fbe19
MD5 8aa292ae585f902b3b1b448c5f9706d6
BLAKE2b-256 414577cc328daf4d40342240ae669d8d04fc937796cbef78d9f55743a2c91476

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1d50d2c1d01a9e014ee783a49067866c98b4a6a71f3a4bb1b8f8ec99c319a059
MD5 321704a1af004680bbbec6d27cbaa268
BLAKE2b-256 89f934f529af318075edae4fabc85db3e424865427d7f39830b26e8c64dd7b7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2a264b8c29ef28541c45a8a67a2e63ae075c92e273a635172e0b5ff30fc5b33c
MD5 e588350693e60933cf403a1f5bc2f3ba
BLAKE2b-256 3ab1934b8c9a976023253266670f07eb1bf7375b4178d76a8853b60132067ea2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2662aaa21cce01e8b374a5cadc4649d35602cbf7c638159317d7135465e50f27
MD5 670ae4d28e2984c89c5b50b3ba4b0fd1
BLAKE2b-256 9d3035ceb3e3dda5a9c995a8c6ce1946bce1e95878c4dfb2fbdd1f5440d50539

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ba1c74cc8e44590e30c5ad9d2c2dbe2c6ee28e7ee821c90c4bfce24ba6decb47
MD5 cb733139a5dc2c6880e9bc9f76b79717
BLAKE2b-256 29b2dc3d170ca4e3038ffedd695e60e94be902522efaba62e7e4f42663c001dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 214165249d53a682c07cda34f591386a74e723fb91c257a1b897a27816b7c0b0
MD5 9011ec8d4276e03580422c646daf3bbe
BLAKE2b-256 963805cc72d43cdb3a79b7e3521fc445b6f491f0aa9950ba49ad4475c8c935b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ea8539e6bd58eadd6292bf81241814a8f99a017332a70f13275f28b92b1aa721
MD5 d5403950378c2d61c18481590be4ec74
BLAKE2b-256 f05c57320a812816a96a99b46bf3e8216f70c401893f6a60d14f02f2e4696c25

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e65bf454ee6220bed03669c1f3dcff676b4187348eab7b5604a3d469e39373f6
MD5 502db333f9c315d47857411be0264e23
BLAKE2b-256 f6912ef64010840d05696729e65ca51dae29bdc02a153eaf39d95dbae3e1c52a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.0-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 994ed29144bd3e98d1b8e7ff5e49d7f2d0b1441adbe03825f2d410046909eee8
MD5 a26c8408bfc4ce40abdabd14e4c914fb
BLAKE2b-256 a909bede07f691bdb1eb9c18d27c2671e3edadc5e87cf9e4344311d4ee04920d

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