Skip to contents

Match RGB colors to the nearest named R color.

Usage

rgbToCol(col, method = c("rgb", "hsv"), metric = c("euclidean", "manhattan"))

Arguments

col

RGB matrix or hexadecimal colors.

method

color space used for matching.

metric

distance metric.

Value

Character vector of named R colors.