[][src]Crate colorsys

Modules

prelude
ratio_converters

Structs

Hsl

The HSL or HSI (hue, saturation, lightness (intensity)) color model

ParseError
Rgb

The RGB color model.

Enums

GrayScaleMethod
SaturationInSpace

Statics

DEFAULT_APPROX_EQ_PRECISION

Default precision used for color comparsion. It is 0.000_000_001

Traits

ApproxEq

Methods to compare two colors

ColorAlpha

Methods to work with alpha channel in color.

ColorTransform

A collection of methods to some special modification of color. Some methods (like saturate, lighten, etc.) requires (inside implementation) converting to another color space and converting back.

Type Definitions

ColorTuple

Use to transfer nad collect color values. May be for example ($red,$green,$blue) or ($hue,$saturation,$value)

ColorTupleA

For example ($hue,$saturation,$lightness,$alpha)