best_contrast: Find highest contrast color

Description Usage Arguments Value Examples

View source: R/contrast_ratio.R

Description

Finds the color in 'y' with the highest contrast to the color 'x'.

Usage

1
best_contrast(x, y = c("#010101", "#FFFFFF"))

Arguments

x

Multiple colors

y

Multiple colors

Value

The elements of 'y' with highest contrast to 'x'.

Examples

1
2
3
4
5

prismatic documentation built on Oct. 17, 2021, 9:06 a.m.