complement {shades}R Documentation

Complementary colours

Description

This function returns the complement of its argument, the "opposite" colours in the specified space.

Usage

complement(shades, space = NULL)

Arguments

shades

One or more colours, in any suitable form (see shade), or a palette function or scale.

space

The space in which to take the complement.

Value

New colours of class "shade", or a new palette function.

Examples

complement("cyan")
complement("cyan", space="HSV")
complement("cyan", space="Lab")

[Package shades version 1.4.0 Index]