Learn R Programming

ColorPalette (version 1.0-1)

complement: complement

Description

This function returns the complement color of a rgb color

Usage

complement(hex, typeVal = "")

Arguments

hex
The base color specified as hex
typeVal
Can be specified as split or double. Default is empty.

Examples

Run this code
complement("#121314")

Run the code above in your browser using DataLab