chromashift

Crates.iochromashift
lib.rschromashift
version0.0.3-canary.f6c763768239ac79c43a1b5ba14f5f971eebf05f
created_at2025-09-07 07:32:12.36217+00
updated_at2025-09-21 10:50:42.819025+00
descriptionA minimal library for converting between various color formats
homepagehttps://hdx.rs
repositoryhttps://github.com/csskit/csskit
max_upload_size
id1827889
size86,375
Keith Cirkel (keithamus)

documentation

README

chromashift

A minimal library for converting between various color formats and color spaces.

📖 Full Documentation

Purpose

Chromashift is a focused color manipulation library designed to seamlessly convert color formats between one and other. It provides comprehensive color space conversions while maintaining a minimal dependency footprint. Developed following CSS specifications, for processing colors in csskit.

Color Format Support

  • RGB/sRGB: Standard RGB with optional alpha channel
  • HSL: Hue, Saturation, Lightness with intuitive manipulation
  • HSV/HSB: Hue, Saturation, Value/Brightness for color pickers
  • HWB: Hue, Whiteness, Blackness as specified in CSS Color Level 4
  • LAB: Perceptually uniform CIE Lab* color space
  • LCH: Lightness, Chroma, Hue cylindrical representation of LAB
  • XYZ: CIE XYZ tristimulus values for device-independent color
Commit count: 712

cargo fmt