Module colstodian::color [−][src]
Expand description
Contains color types and helper functions.
Structs
A strongly typed color, parameterized by a color space and state.
A strongly typed color with an alpha channel, parameterized by a color space and alpha state.
A dynamic color, with its Space and State defined as data. This is mostly useful for (de)serialization.
A dynamic color with an alpha channel, with its space and alpha defined as data. This is mostly useful for (de)serialization.
Functions
Creates a Color
in the LinearSrgb
color space in the St
State with components r
, g
, and b
.
Creates a ColorAlpha
in the LinearSrgb
color space with components r
, g
, b
, and a
Creates a Color
in the EncodedSrgb
color space with components r
, g
, and b
.
Creates a Color
in the EncodedSrgb
color space with components r
, g
, and b
.
Creates a ColorAlpha
in the EncodedSrgb
color space with components r
, g
, b
, and a
.
Creates a ColorAlpha
in the EncodedSrgb
color space with components r
, g
, b
, and a
.