merge_nearest_colors: Merge colors based on similarity and frequency

View source: R/mixing.R

merge_nearest_colorsR Documentation

Merge colors based on similarity and frequency

Description

Merge colors based on similarity and frequency

Usage

merge_nearest_colors(color_vec, k = 12)

Arguments

color_vec

A vector of hex or R colors

k

The number of colors to retain

Value

a vector of merged colors with equal length to color_vec.


hypercompetent/colorway documentation built on April 2, 2024, 1:44 a.m.