aggreg.colors: Sort a collection of colors

Description Usage Arguments Value See Also Examples

View source: R/functions.R

Description

Sort a collection of colors

Usage

1
aggreg.colors(colors, aggreg.method = "median")

Arguments

colors

a vector containing the colors to be sorted in rgb format.

aggreg.method

method of aggregation of the colors corresponding to each word in the sentence argument. Possible choices are:

  • most-prominent: take the first value returned by the function get.color;

  • median: sort all the colors returned by the function get.color according to their hue and then take the median color;

  • mean: take the mean of all the colors returned by the function get.color in the hsv space.

Value

the 20 first colors found on picular.co for word. See http://picular.co for more details

See Also

create.palette

Examples

1
2
get.color("spring")
get.color("fire")

tulliapadellini/rainbaud documentation built on July 12, 2019, 9:55 p.m.