rgb_dist: Calculates a measure of the contrast between col1 and col2

Description Usage Arguments Examples

Description

Calculates a measure of the contrast between col1 and col2

Usage

1
rgb_dist(col1, col2)

Arguments

col1

Hexcode, c(r,g,b), color name as character and "color" class object are all supported.

col2

Hexcode, c(r,g,b), color name as character and "color" class object are all supported.

Examples

1
2
3
4
rgb_dist("green", "blue")
rgb_dist(c(255,0,0), c(127,0,0))
rgb_dist(color("blue"), color("black"))
rgb_dist("lightblue", "black")

dpcarballo/coloR documentation built on June 1, 2019, 8:14 p.m.