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.5.tar.gz (44.2 kB view hashes)

Uploaded Source

Built Distributions

materialyoucolor-2.0.5-cp312-cp312-win_amd64.whl (105.8 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

materialyoucolor-2.0.5-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (127.6 kB view hashes)

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

materialyoucolor-2.0.5-cp312-cp312-macosx_10_9_universal2.whl (183.7 kB view hashes)

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

materialyoucolor-2.0.5-cp311-cp311-win_amd64.whl (105.4 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

materialyoucolor-2.0.5-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (127.9 kB view hashes)

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

materialyoucolor-2.0.5-cp311-cp311-macosx_10_9_universal2.whl (188.7 kB view hashes)

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

materialyoucolor-2.0.5-cp310-cp310-win_amd64.whl (104.3 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

materialyoucolor-2.0.5-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (126.3 kB view hashes)

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

materialyoucolor-2.0.5-cp310-cp310-macosx_11_0_x86_64.whl (114.7 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ x86-64

materialyoucolor-2.0.5-cp310-cp310-macosx_10_9_universal2.whl (187.3 kB view hashes)

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

materialyoucolor-2.0.5-cp39-cp39-win_amd64.whl (104.2 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

materialyoucolor-2.0.5-cp39-cp39-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (126.5 kB view hashes)

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

materialyoucolor-2.0.5-cp39-cp39-macosx_11_0_x86_64.whl (114.9 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ x86-64

materialyoucolor-2.0.5-cp39-cp39-macosx_10_9_universal2.whl (187.5 kB view hashes)

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

Supported by

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