complement: Complementary colours

Description Usage Arguments Value Examples

Description

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

Usage

1

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

1
2
3
complement("cyan")
complement("cyan", space="HSV")
complement("cyan", space="Lab")

shades documentation built on Aug. 2, 2019, 5:05 p.m.