Description Usage Arguments Value Author(s) Examples
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.
1 2 | Complement(color)
ComplementPalette(color,n=100)
|
color |
A color or (for Complement) possibly a vector of colors |
n |
The number of colors to produce |
For Complement(), a vector of colors with the same length as color. For ComplementPalette() a vector of n colors
Brody Sandel
1 2 | TestPalette(Complement(terrain.colors(100)))
TestPalette(ComplementPalette("blue"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.