vlkr_colors_contrast: Given a vector of hex fill colors, choose an appropriate color for text
Description
Given a vector of hex fill colors, choose an appropriate color for text
Usage
vlkr_colors_contrast(colors, threshold = 0.5)
Value
A vector of the same length as fill_colors with white or black colors.
Arguments
- colors
A vector of hex colors
- threshold
Luminance theshold for choosing black over white