Nothing
closestColHex <- function(target, n = 3, superset = grDevices::colours(distinct = TRUE)) {
target <- as.numeric(grDevices::col2rgb(target))
dist_mat <- grDevices::col2rgb(superset) - target
dist <- apply(dist_mat, 2, function(x) sum(abs(x)))
closest <- order(dist)[1:n]
superset[closest]
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.