complement: Complementary colours

complementR 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")

jonclayden/shades documentation built on Oct. 17, 2024, 4:52 p.m.