text_contrast: text_contrast

View source: R/ez_col.R

text_contrastR Documentation

text_contrast

Description

text_contrast

Usage

text_contrast(x)

Arguments

x

Vector of colours.

Value

Vector indicating whether black or white should be used for text overlayed on x.

Examples

text_contrast("#000000")
text_contrast("black")

ezplot documentation built on May 29, 2024, 4:05 a.m.