Module ui::color [] [src]

Shared color definitions.

Colors may be specified in various coordinate systems and then converted into other coordinate systems for display or manipulation.

Colors may also be specified by name.

Integration

Integration with the color formats used by other libraries may be available.

iOS and macOS

This will be forthcoming. Pull requests are welcome.

WebRender

WebRender integration is optionally available which allows for converting rgba::Color values into WebRender's color structures. This is currently not functioning and will be fixed in the near future.

GTK+

This will be forthcoming. Pull requests are welcome.

Modules

cmyk

CMYKA Colors

hsla

HSLA Colors - Hue, Saturation, Lightness

hsva

HSVA Colors

rgba

RGBA Colors

Traits

Color

Functions

hsl

Create a color from HSL components.

hsla

Create a color from HSL components with alpha.

rgb
rgba