View source: R/findSimilarColor.R
findSimilarColor | R Documentation |
Find a similar hex code to a given input using one of the available methods
findSimilarColor(color_v, adjustment_v = "tint", factor_v = 0.4)
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. |
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?
vector of hexcodes of length n_v
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.