pick_colors {crayons}R Documentation

Heuristics for Color Distances and Locations

Description

Usage

pick_colors(hex, n)

color_distance(hex)

color_order(hex)

Arguments

hex

a character vector of hexadecimal colors

n

the integer number of desired colors

Value

a character vector that is a subset of hex, or a matrix of distances for color_distance()

Examples

pick_colors(crayons$standard, 10)
color_order(crayons$standard)
color_distance(crayons$standard[1:4])

[Package crayons version 0.0.3 Index]