hex_bw {ggstats}R 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")

[Package ggstats version 0.6.0 Index]