Skip to main content

A package for normalizing values and mapping them to a color gradient.

Project description

color_mapper

A package for normalizing values and mapping them to a color gradient.

Installation

pip install color_mapper

Usage

from color_mapper import value_to_color

values = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
color_bases = ['blue', 'yellow', 'red']
color_mapped_values = value_to_color(values, color_bases)
for item in color_mapped_values:
    print(f"Value: {item['value']}, Color: {item['color']}")

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

color_mapper-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

color_mapper-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file color_mapper-0.1.0.tar.gz.

File metadata

  • Download URL: color_mapper-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.0

File hashes

Hashes for color_mapper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6ff1116ed0f6cd520395f117c169116ee9632730606601e4da4f6a23fc3b05e4
MD5 2ba031fd36d469c2da11111bd71f8744
BLAKE2b-256 5d42273116ed7b1434a6b4de67712928c84c977b575e4062b44f39915351b679

See more details on using hashes here.

File details

Details for the file color_mapper-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for color_mapper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bcf6b8c3bb5e2715ac8fc98b40821aa9bf0440b5ea5ee5cb3d0a48aeb57e9a1
MD5 b38c006f11e01ba6787219aa1137b65f
BLAKE2b-256 512ed0719e960da23912f12e6c8d77734e0a1a072d7674220dbf34ee8ea7721c

See more details on using hashes here.

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