[][src]Module nannou::color

Color items, including everything from rgb, hsb/l/v, lap, alpha, luma and more, provided by the palette crate. See the palette docs for more details or see the named module for a set of provided color constants.

Re-exports

pub use self::named::*;

Modules

blend

Color blending and blending equations.

gradient

Types for interpolation between multiple colors.

named

A collection of named color constants. Can be toggled with the "named" Cargo feature.

named

A set of provided, named color constants.

pixel

Pixel encodings and pixel format conversion.

Structs

Alpha

An alpha component wrapper for colors.

Hsl

Linear HSL color space.

Hsv

Linear HSV color space.

Hwb

Linear HWB color space.

Lab

The CIE Lab* (CIELAB) color space.

LabHue

A hue type for the CIE Lab* family of color spaces.

Lch

CIE LCh°, a polar version of CIE Lab*.

Luma

Linear luminance.

Rgb

Linear RGB.

RgbHue

A hue type for the RGB family of color spaces.

Xyz

The CIE 1931 XYZ color space.

Yxy

The CIE 1931 Yxy (xyY) color space.

Enums

Color

A generic color type.

Traits

ComponentWise

Perform a unary or binary operation on each component of a color.

FromColor

FromColor provides conversion between the colors.

GetHue

A trait for colors where a hue may be calculated.

Hue

A trait for colors where the hue can be manipulated without conversion.

IntoColor

IntoColor provides conversion between the colors.

Limited

A trait for clamping and checking if colors are within their ranges.

Mix

A trait for linear color interpolation.

Saturate

A trait for colors where the saturation (or chroma) can be manipulated without conversion.

Shade

The Shade trait allows a color to be lightened or darkened.

Type Definitions

Colora

Generic color with an alpha component. See the Colora implementation in Alpha.

Hsla

Linear HSL with an alpha component. See the Hsla implementation in Alpha.

Hsva

Linear HSV with an alpha component. See the Hsva implementation in Alpha.

Hwba

Linear HWB with an alpha component. See the Hwba implementation in Alpha.

Laba

CIE Lab* (CIELAB) with an alpha component. See the Laba implementation in Alpha.

Lcha

CIE LCh° with an alpha component. See the Lcha implementation in Alpha.

Lumaa

Linear luminance with an alpha component. See the Lumaa implementation in Alpha.

Rgba

Linear RGB with an alpha component. See the Rgba implementation in Alpha.

Xyza

CIE 1931 XYZ with an alpha component. See the Xyza implementation in Alpha.

Yxya

CIE 1931 Yxy (xyY) with an alpha component. See the Yxya implementation in Alpha.