| vlkr_colors_contrast | R Documentation |
Given a vector of hex fill colors, choose an appropriate color for text
vlkr_colors_contrast(colors, threshold = 0.5)
colors |
A vector of hex colors |
threshold |
Luminance theshold for choosing black over white |
A vector of the same length as fill_colors with white or black colors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.