colr-types 0.3.0

Color model ZSTs and marker traits for colr.
Documentation

colr-types

Color model ZSTs and marker traits for colr.

This crate contains the type-level building blocks used by colr. It includes the color model structs (Rgb, Lab, Oklab, ...), transfer function markers, illuminants, primaries, layouts, and the Encode/Decode traits. Color<S, M> and its operations live in colr and are not included here.

Most users should depend on colr instead. colr-types is intended for crates that need to bound on or carry color model types without pulling in the full operation set, such as a GPU backend that parameterizes textures on color model but manages its own storage.