get_dark_cols: Get n darkest colors from a single one

Description Usage Arguments Value Examples

View source: R/single-colorscale.R

Description

Get n darkest colors from a single one

Usage

1
get_dark_cols(color, n = 4, darkness = 0.5, rotate = -51, saturation = 0.14)

Arguments

color

Hexadecimal string or a name for color.

n

Number of desired colors.

darkness

Percentage of darkness ([0, 1]).

rotate

Rotate coefficient in HSL space ([-360, 360]).

saturation

Saturation percentage in HSL space ([-1, 1]).

Value

a vector of n colors.

Examples

1
2
3
4
get_dark_cols("#1D9A6C")

# display in viewer
view_cols(get_dark_cols(color = "#1D9A6C"))

dreamRs/colorscale documentation built on April 17, 2020, 8:38 a.m.