colr-types 0.2.0

Color model ZSTs and marker traits for colr.
Documentation
1
2
3
4
5
6
7
# colr-types

Color model ZSTs and marker traits for [colr](../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.