[][src]Crate colorsys

A module for color conversion, mutation, modification. For now works with RGB(a)( as hexadecimal too), HSL(a) color models

Modules

prelude
ratio_converters

Structs

Hsl

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

HslRatio

Hsl representation as ratio (from 0.0 to 1.0). Cannot be modified, added, subtracted, etc. Can be converted to Hsl and vice versa. Used for compatibility in various libraries.

ParseError
Rgb

The RGB color model.

RgbRatio

Rgb representation as ratio (from 0.0 to 1.0). Cannot be modified, added, subtracted, etc. Can be converted to Rgb and vice versa. Used for compatibility in various libraries.

Enums

GrayScaleMethod
SaturationInSpace

Statics

DEFAULT_APPROX_EQ_PRECISION

Default precision used for color comparison. 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 vice versa.

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)