Complement: Generate the complement (opposite hue) of a color, or...

Description Usage Arguments Value Author(s) Examples

Description

Given a color, Complement() maintains the same value and saturation, but returns a color of the opposite hue. ComplementPalette() creates a color palette that ramps between a color and its complement.

Usage

1
2
Complement(color)
ComplementPalette(color,n=100)

Arguments

color

A color or (for Complement) possibly a vector of colors

n

The number of colors to produce

Value

For Complement(), a vector of colors with the same length as color. For ComplementPalette() a vector of n colors

Author(s)

Brody Sandel

Examples

1
2

painter documentation built on May 2, 2019, 10:46 a.m.

Related to Complement in painter...