Learn R Programming

ColorNameR (version 0.1.0)

get_closest_color: Get information about the closest RHS color to some CIELab coordinates.

Description

Get information about the closest RHS color to some CIELab coordinates.

Usage

get_closest_color(L, a, b, metric = "CIEDE2000")

Arguments

L

The lightness L* of the color.

a

The chromatic component a* (red-green).

b

The chromatic component b* (blue-yellow).

metric

The color distance to use.

Value

A one-row tibble.

Examples

Run this code
# NOT RUN {
get_closest_color(65, 20, -20)
# }

Run the code above in your browser using DataLab