complementary: Returns the complementary color to that it receives as input

Description Usage Arguments Value Examples

Description

Returns the complementary color to that it receives as input

Usage

1

Arguments

...

Color whose complementary is to be calculated. Hexcode, c(r,g,b), color name as character and "color" class object are all supported.

Value

Generally, a hexcode representing the input's complementary. If a "color" class object is received as argument, the complementary will keep this format.

Examples

1
2
3
4
5
complementary("red")
complementary("#ff00ff")
complementary(0,128,128)
complementary(c(0,0,0))
complementary(color(c(.7,.25,.25), maxVal=1))

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