Crate color_art

Source
Expand description

githubcrates-iodocs-rs

A rust crate for working with colors and color spaces.

Macros§

color

Structs§

Color
Color is a struct that represents a color.

Enums§

BlendMode
blend mode enum
ColorSpace
Color space enum.
Error
Error info enum

Functions§

blend
Blends two colors using RGB channel-wise blend functions.
contrast_ratio
Computes the WCAG contrast ratio between two colors
delta_e
Computes color difference as developed by the International Commission on Illumination (CIE) in 2000.
distance
Computes the Euclidean distance between two colors in RGBA color space.
distance_with
Computes the Euclidean distance between two colors in a given color space.