Skip to main content

A Python toolbox for manipulating and assessing colors and palettes

Project description

python-colorspace

A Python toolbox for manipulating and assessing colors and palettes

Documentation Examples Testing Coverage

The package provides a Python 3 version of the R colorspace package comprising:

  • Color spaces: Conversions and manipulations of RGB, HSV, CIEXYZ, CIELAB, CIELUV, HCL etc.
  • HCL-based palettes: Qualitative, sequential, and diverging color maps constructed using the HCL (hue-chroma-luminance) color model. These can closely approximate palettes from ColorBrewer.org, CARTO, viridis, or Crameri's scientific color maps.
  • matplotlib color maps: Integration with matplotlib for use in standard plotting functions.
  • Palette visualization: Plotting palettes in color swatches, spectrums of HCL and/or RGB trajectories, and illustrations of typical data visualizations.
  • Interactive palette chooser: App for exploring, modifying, and picking color palettes interactively.
  • Color vision deficiency: Emulation of different kinds of color blindness.
  • Utilities: Various color manipulations including tools to desaturate, lighten, darken, adjust the transparency, or compute the contrast ratio.

Links

Contributors

Furthermore, the Python package implements the functionality from the R package that is co-written with Ross Ihaka, Paul Murrell, Kurt Hornik, Jason C. Fisher, Claus O. Wilke, Claire D. McWhite.

Development notes

Community guidelines

If you encountery any bugs or issues, or are interested in contributing to Python colorspace, please have a look at our Community guidelines.

Test and development

More detailed information on how to run automated tests, create coverage reports, test examples and render the documentation can be found on our Installation page.

GitHub Action integration (CI)

Additional notes about development and deployment are documented in GITHUBACTIONS.md.

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

colorspace-0.5.0.tar.gz (517.0 kB view details)

Uploaded Source

File details

Details for the file colorspace-0.5.0.tar.gz.

File metadata

  • Download URL: colorspace-0.5.0.tar.gz
  • Upload date:
  • Size: 517.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for colorspace-0.5.0.tar.gz
Algorithm Hash digest
SHA256 2ee15f29cbe8d69181ed8cf478ca75e802f71e9d4538662f51996645764cd59c
MD5 7af3f9cd91ab8b2a86682f186e8359cf
BLAKE2b-256 57052bb0ec1cc3c66487fd7809d81a8d9bf9872096dbe067d106bba511ce60a1

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