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.4.tar.gz (44.2 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.4-cp312-cp312-win_amd64.whl (105.8 kB view details)

Uploaded CPython 3.12Windows x86-64

materialyoucolor-2.0.4-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.4-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.4-cp311-cp311-win_amd64.whl (105.4 kB view details)

Uploaded CPython 3.11Windows x86-64

materialyoucolor-2.0.4-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.4-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.4-cp310-cp310-win_amd64.whl (104.3 kB view details)

Uploaded CPython 3.10Windows x86-64

materialyoucolor-2.0.4-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.4-cp310-cp310-macosx_11_0_x86_64.whl (114.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

materialyoucolor-2.0.4-cp39-cp39-win_amd64.whl (104.2 kB view details)

Uploaded CPython 3.9Windows x86-64

materialyoucolor-2.0.4-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.4-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.4.tar.gz.

File metadata

  • Download URL: materialyoucolor-2.0.4.tar.gz
  • Upload date:
  • Size: 44.2 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.4.tar.gz
Algorithm Hash digest
SHA256 0127cbdb3a1e5b69379c7dddd928b286f65720c6c534ade8b6076f2428b8d4e9
MD5 27318d00dc1948dab14202060285ba77
BLAKE2b-256 3d3f3a23c9704a0e6e6f9fe2bb7d061e9cb2c0dc43bef5b22256da98f9086dc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a77383429c0069898e6c47edf75f7e14153d0eddd3c5b4533abe6ba8f5adba21
MD5 ec7d30ed351df8628c082e225604a5fd
BLAKE2b-256 ccffb4d1c7128cb2a115afa6e9564e4d019a98715184735f59aa5eba993ae66f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 46a327537c01dd135869e030c2aa298f3b4a62e9cf36d678880c9fd7ae5bff4b
MD5 287206ea27e012125f27450ce206198e
BLAKE2b-256 ccced986878b04428240cc26a7a999d50d99de702c0e2f68c2cf0bcb30421663

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp312-cp312-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e2148c724f0a5ae387efc084756ddccb97dd499d00be58c11ba1d5d7956d9912
MD5 b6c07a27a2268b6dffbc82258ca726a0
BLAKE2b-256 ea594ee48bd4a955dba2e77d7c42a40f9ecb34344dcdd31e7cfe94e02de18bd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d1f7cd800aba27839e3c491ebd2dd1a68d6bb4f9fbb5cc60a0f6ef9ea0c49840
MD5 e02643c024e941abc1f14ece5a941e93
BLAKE2b-256 c63f8bf4c0aeb4a8e46dd4f9684054f0d0db49d3484d84febd762f80b3881a48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bc9707f88a52cd357cc7c9a862c8b9d996b38bff39ff583660eb6392ae55dc5c
MD5 b94f5a6bf18b6271070051762d5afe52
BLAKE2b-256 1db4fe58d3ba51dcf938cb9caa1849da31473ade362403127ab6d3e80f68fa50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 52bf5cd6ce84d3bdde828e601f9cefc41c464b2c7cb0c3f7de76f18edcc430c7
MD5 8b3dd72c7e83e8c379191b875e489be5
BLAKE2b-256 0a0a4e1bcbf28ea82502ffe91fc4af0483ca8ab14de981a717f1c687d9ec080c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 92062a9db3067f5af85d3ea67fac7a36e9ab2a4017b4f2631bf407eb77ac7cb4
MD5 296af061d60a3ced681fa73fd5383928
BLAKE2b-256 1c150b4042a823bb9bf781cf11a8d452eb1c8769e0dbf1ca801e8fbc9c06498b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 16e2f05147db70246aca015828b1d68b430e6a5f21e088b1754a2c7c3cf5dcba
MD5 43a141654b4f8f879f2f551dbc604cb7
BLAKE2b-256 3f5185a63bb8d61da16849ef21c03bc06da9d79d3c24c72656d38b7887a571d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 e6cf48d1f6465d18e2d0a4e05050044bb13c2b540304fdae0c641beaed3200a9
MD5 cbeabcafa5d36926883db71a3e1676c5
BLAKE2b-256 9a8af28c716e3871e7cc3895d9e15a639593017881865c38fea4adc4ac78ee6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a79d6fc7facb1730eeb839ffef2c2ed415f19f26c9acd3c660e52ac9fe2511e7
MD5 156e695c26dd35114235312950459cf7
BLAKE2b-256 206ce9965be530e0b81f0d474d89d57d46f60cc938109819a9ebff0ebd53ffec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 97f023ec80eccb72b3fa48377abd34a42ecd120d96e8cbd76b3e88fc2a8caef1
MD5 b253c5f437827ed5e261f2dde4b3c3e0
BLAKE2b-256 de8f6fed1b5f8ce3286c4c42192f685c7a9330921825a4e3f333a1c215af4e68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for materialyoucolor-2.0.4-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 4259e9d37950c5bd90ae100243d17ba4cd17e74d5c9c9f22b93ab74b9f29d4e2
MD5 7e7a9d0992d8fbce7b7ceb7c47891595
BLAKE2b-256 5b252a968970ceed2a429d9f9d51262c5201fb372f8ab2bce00f67edb3bf9211

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