Skip to contents

Create an Hue palette.

Usage

Hue(
  paletteLength = 9,
  rotation = NULL,
  hueRange = c(0, 360),
  saturation = 0.65,
  lightness = 0.65,
  alphaValue = 1,
  alpha = FALSE
)

Arguments

paletteLength

: Color number.

rotation

: If positive, rotates clockwise in the color space, reversing if the number is negative. If is NULL, compute rotation according to hueRange parameter. (Default NULL)

hueRange

: Degree range in color space between 0 and 360. (Default c(0,360))

saturation

: Saturation value between 0 and 1. (Default 0.65)

lightness

: Lightness value between 0 and 1. (Default 0.65)

alphaValue

: Opacity value between 0 and 1. (Default 1)

alpha

: Whether the alpha layer should be returned. (Default FALSE)

Value

A vector of color.

Details

Hue

Examples

Hue(paletteLength = 9)
#> [1] "#e06c6c" "#e0b96c" "#b9e06c" "#6ce06c" "#6ce0b9" "#6cbae0" "#6c6ce0"
#> [8] "#b86ce0" "#e06cba"