Make High Contrast Label Colors
Generate a vector of white or black label colors conditioned on a vector of colors to maximize label contrast.
invertLabelColor(colors, threshold = 0.65)
colors |
vector of colors |
threshold |
black | white threshold |
vector of label colors
D.E. Beaudette
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.