Crate colcon

source ·
Expand description

Simple colorspace conversions in pure Rust.

All conversions are in-place, except when converting to/from integer and hexadecimal. Formulae are generally taken from their research papers or Wikipedia and validated against colour-science https://github.com/colour-science/colour

Helmholtz-Kohlrausch compensation formulae sourced from https://onlinelibrary.wiley.com/doi/10.1002/col.22839

This crate references CIE Standard Illuminant D65 for functions to/from CIE XYZ

Enums

  • Defines colorspace pixels will take.

Constants

  • Standard Illuminant D65.
  • Mean value of the HK delta, High et al 2023 implementation. Measured with 36000 steps in the hk_exmample file @ 100 C(ab) Cannot make a const fn: https://github.com/rust-lang/rust/issues/57241

Functions