Module color
Source - define_colors ๐
- Luma
- Grayscale colors.
- LumaA
- Grayscale colors + alpha channel
- Rgb
- RGB colors.
- Rgba
- RGB colors + alpha channel
- ColorType
- An enumeration over supported color types and bit depths
- ExtendedColorType
- An enumeration of color types encountered in image formats.
- SRGB_LUMA ๐
- Coefficients to transform from sRGB to a CIE Y (luminance) value.
- SRGB_LUMA_DIV ๐
- Blend ๐
- Blends a color inter another one
- FromColor
- Provides color conversions for the different pixel types.
- FromPrimitive
- Convert from one pixel component type to another. For example, convert from
u8 to f32 pixel values. - IntoColor ๐
- Copy-based conversions to target pixel types using
FromColor. - Invert ๐
- Invert a color
- normalize_float ๐
- rgb_to_luma ๐