Learn R Programming

textAnnotatoR (version 1.0.1)

is_color_readable: Validate color readability

Description

Checks if a given color provides sufficient contrast with black text. Uses luminance calculation to determine readability.

Usage

is_color_readable(color)

Value

Logical indicating whether color is readable

Arguments

color

Character string containing hex color code