reanimate-0.4.2.0: Animation library based on SVGs.

Reanimate.ColorComponents

Description

Colors are three dimensional and can be projected into many color spaces with different properties.

Interpolating directly in the RGB color space is unintuitive and rarely useful. If you want to transition through color, you most likely want either the XYZ space (for physically accurate color transitions) or the LAB space (for esthetically pleasing colors).

Synopsis

# Documentation

Constructor and destructor for color's three components.

Constructors

 ColorComponents FieldscolorUnpack :: Colour Double -> (Double, Double, Double)Unpack a color into its three components.colorPack :: Double -> Double -> Double -> Colour DoubleRestore a color from three coordinates.
interpolate rgbComponents yellow blue

interpolate hsvComponents yellow blue

interpolate labComponents yellow blue

interpolate xyzComponents yellow blue

interpolate lchComponents yellow blue

Smoothly interpolate between two colors using the given color components.

Convenience interpolation function for RGB8 values.

Convenience interpolation function for RGBA8 values.

Convenience function for expressing a color as an RGB8 value.

Convenience function for expressing an RGB8 value as a color.