complement: complement

Description Usage Arguments Examples

Description

This function returns the complement color of a rgb color

Usage

1
complement(hex, typeVal = "")

Arguments

hex

The base color specified as hex

typeVal

Can be specified as split or double. Default is empty.

Examples

1
complement("#121314")

Example output

[1] "#141312"

ColorPalette documentation built on May 2, 2019, 9:31 a.m.