Module color

Source
Available on crate feature color only.
Expand description

Chromatic functionality.

Structs§

Gamma
Gamma correction curves.
Lum
A generic luminance-like component.
Rgb
RGB color with 3 components.
Rgba
RGB+A color with 4 components.

Traits§

Color
Base trait for general color data representation.

Type Aliases§

Lightness
Perceptual lightness (L*).
LinearLightness
Linearized perceptual lightness (L* in linear space).
Luma
Gamma-encoded luma (Y′).
Luminance
Physical luminance.
Rgb8
RGB color with 8-bit integer components (sRGB gamma space).
Rgb16
RGB color with 16-bit integer components (sRGB gamma space).
RgbF64
RGB color with 64-bit float components (sRGB gamma space).
RgbLinF64
RGB color with 64-bit float components (linear space).
Rgba8
RGB+A color with 8-bit integer components (sRGB gamma space, straight alpha).
Rgba16
RGB+A color with 16-bit integer components (sRGB gamma space, straight alpha).
RgbaF64
RGB+A color with 64-bit float components (sRGB gamma space, straight alpha).
RgbaLinF64
RGB+A color with 64-bit float components (linear space, straight alpha).
RgbaLinPreF64
RGB+A color with 64-bit float components (linear space, premultiplied alpha).
RgbaPre8
RGB+A color with 8-bit integer components (sRGB gamma space, premultiplied alpha).
RgbaPre16
RGB+A color with 16-bit integer components (sRGB gamma space, premultiplied alpha).
RgbaPreF64
RGB+A color with 64-bit float components (sRGB gamma space, premultiplied alpha).