hex_bw: Identify a suitable font color (black or white) given a...

View source: R/hex_bw.R

hex_bwR Documentation

Identify a suitable font color (black or white) given a background HEX color

Description

Identify a suitable font color (black or white) given a background HEX color

Usage

hex_bw(hex_code)

Arguments

hex_code

Background color in hex-format.

Value

Either black or white, in hex-format

Source

Adapted from saros

Examples

hex_bw("#0dadfd")

ggstats documentation built on June 22, 2024, 12:21 p.m.