Module encoding

Source
Expand description

Number and color encoding traits, types and standards.

Some color spaces, particularly RGB, may be encoded in more than one way and may have more than one standard. These encodings and standards are represented as type parameters in Palette, as a form of type branding, to prevent accidental mixups.

Modules§

gamma
Gamma encoding.
linear
Linear encoding
srgb
The sRGB standard.

Structs§

F2p2
Represents 2.2f64.
Gamma
Gamma encoding.
Linear
A generic standard with linear components.
Srgb
The sRGB standard, color space, and transfer function.

Traits§

FromLinear
A transfer function from linear space.
IntoLinear
A transfer function to linear space.