palDesaturate: Creates palette from base color

Description Usage Arguments Value

View source: R/palDesaturate.R

Description

Palette with same hue and luminance colors, only saturation varies down from start color

Usage

1
2
3
4
5
6
7
8
palDesaturate(
  base_color = "blue",
  n = 3,
  max_desaturation = 0.8,
  plot = F,
  lighten = 0,
  dir = 1
)

Arguments

base_color

hex code or name

n

number of colors to return in palette

max_desaturation

fraction of desaturation for end color : 1 is complete desaturation

plot

if TRUE return hclplot

lighten

between -1 and 1, positive values for lightening and negtive for darkening

dir

-1 for reversing color order

Value

palette or plot for palette


OlivierGranacher/colorCustom documentation built on May 4, 2020, 12:05 a.m.