rgb2col: Get the nearest color name from rgb

Description Usage Arguments

View source: R/util.R

Description

Get the nearest color name from rgb

Usage

1
rgb2col(rgb, color_names = grDevices::colors())

Arguments

rgb

- vector with r,g,b components, in that order

color_names

- a character vector containing the list of color names to look from. By default it's all colors R knows about


Blaza/ssoftveR documentation built on May 6, 2019, 11:19 a.m.