findSimilarColor: Find Similar Color

View source: R/findSimilarColor.R

findSimilarColorR Documentation

Find Similar Color

Description

Find a similar hex code to a given input using one of the available methods

Usage

findSimilarColor(color_v, adjustment_v = "tint", factor_v = 0.4)

Arguments

color_v

vector of colors

adjustment_v

Type of adjustment - shade, tint, tone, layer, average

factor_v

value from 0 to 1 indicating how closely to white or black to pull color.

Details

if length(color_v) is greater than one, will average the hex code before adjusting shade - darken by a factor of black tint - lighten by a factor of white average - no adjustment, just take average of values in color_v To do - can I output more than one color? To do - can i do tone and layer?

Value

vector of hexcodes of length n_v


weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.